From f063792893e854046c311857c862163d1dfc97f9 Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 17 May 2005 21:43:42 +0000 Subject: [PATCH] Prevented bogus check of unset variable. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1417 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/zm_actions.php b/web/zm_actions.php index 3b3704fc4..a43d8f7d7 100644 --- a/web/zm_actions.php +++ b/web/zm_actions.php @@ -151,7 +151,7 @@ if ( isset($action) ) } } } - if ( canEdit( 'Monitors', $mid ) ) + if ( isset($mid) && canEdit( 'Monitors', $mid ) ) { if ( $action == "function" && isset( $mid ) ) {