Prevented bogus check of unset variable.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1417 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2005-05-17 21:43:42 +00:00
parent 455963730e
commit f063792893
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ if ( isset($action) )
}
}
}
if ( canEdit( 'Monitors', $mid ) )
if ( isset($mid) && canEdit( 'Monitors', $mid ) )
{
if ( $action == "function" && isset( $mid ) )
{