mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Only load non deleted Monitors
This commit is contained in:
@@ -1601,7 +1601,7 @@ function trimString($string, $length) {
|
||||
function monitorIdsToNames($ids) {
|
||||
global $mITN_monitors;
|
||||
if ( !$mITN_monitors ) {
|
||||
$sql = 'SELECT Id, Name FROM Monitors';
|
||||
$sql = 'SELECT Id, Name FROM Monitors WHERE `Deleted`=false';
|
||||
foreach ( dbFetchAll($sql) as $monitor ) {
|
||||
$mITN_monitors[$monitor['Id']] = $monitor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user