From 2cba5c3ecc552d346409e06442f0cae8962a353c Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 15 Apr 2008 14:01:20 +0000 Subject: [PATCH] Bug 66 - Fixed 'prev' link in watch view. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2387 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_xhtml_view_watch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/zm_xhtml_view_watch.php b/web/zm_xhtml_view_watch.php index d37300558..dee55a244 100644 --- a/web/zm_xhtml_view_watch.php +++ b/web/zm_xhtml_view_watch.php @@ -78,7 +78,7 @@ foreach( dbFetchAll( $sql ) as $row ) //$monitor = $monitors[$mon_idx]; $next_mid = $mon_idx==(count($monitors)-1)?$monitors[0]['Id']:$monitors[$mon_idx+1]['Id']; -$prev_mid = $mon_idx==0?$mon_index[(count($monitors)-1)]['Id']:$monitors[$mon_idx-1]['Id']; +$prev_mid = $mon_idx==0?$monitors[(count($monitors)-1)]['Id']:$monitors[$mon_idx-1]['Id']; $scale = getDeviceScale( $monitor['Width'], $monitor['Height'] );