Merge branch 'fix_x10' into storageareas
commit
769af661e9
|
@ -1,3 +1,4 @@
|
|||
/var/cache/zoneminder/events /usr/share/zoneminder/www/events
|
||||
/var/cache/zoneminder/images /usr/share/zoneminder/www/images
|
||||
/var/cache/zoneminder/temp /usr/share/zoneminder/www/temp
|
||||
/var/tmp /usr/share/zoneminder/www/api/app/tmp
|
||||
|
|
|
@ -1,2 +1,6 @@
|
|||
d /var/run/zm 0755 www-data www-data
|
||||
d /tmp/zm 0755 www-data www-data
|
||||
d /var/run/zm 0755 www-data www-data
|
||||
d /tmp/zm 0755 www-data www-data
|
||||
d /var/tmp/zm 0755 www-data www-data
|
||||
d /var/tmp/cache 0755 www-data www-data
|
||||
d /var/tmp/cache/models 0755 www-data www-data
|
||||
d /var/tmp/cache/persistent 0755 www-data www-data
|
||||
|
|
|
@ -525,7 +525,7 @@ if ( !empty($action) ) {
|
|||
dbQuery( "update TriggersX10 set ".implode( ", ", $x10Changes )." where MonitorId=?", array($mid) );
|
||||
} elseif ( !$user['MonitorIds'] ) {
|
||||
if ( !$x10Monitor ) {
|
||||
dbQuery( "insert into TriggersX10 set MonitorId = ?".implode( ", ", $x10Changes ), array( $mid ) );
|
||||
dbQuery( "insert into TriggersX10 set MonitorId = ?, ".implode( ", ", $x10Changes ), array( $mid ) );
|
||||
} else {
|
||||
dbQuery( "delete from TriggersX10 where MonitorId = ?", array($mid) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue