From 3e4496cad9dc92a5372c908af2d5c624528be342 Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 21 Dec 2007 11:35:23 +0000 Subject: [PATCH] Fixed issue with Monitor sequences. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2259 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_funcs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/zm_funcs.php b/web/zm_funcs.php index eb46907ac..51c974a72 100644 --- a/web/zm_funcs.php +++ b/web/zm_funcs.php @@ -1431,9 +1431,9 @@ function verNum( $version ) function fixSequences() { - $sql = "select * from Monitors order by Sequence asc, Id asc"; $sequence = 1; - foreach( dbFetchAll( $monitors ) as $monitor ) + $sql = "select * from Monitors order by Sequence asc, Id asc"; + foreach( dbFetchAll( $sql ) as $monitor ) { if ( $monitor['Sequence'] != $sequence ) {