Update app_defaults.php

This commit is contained in:
FusionPBX 2017-01-10 01:14:49 -07:00 committed by GitHub
parent b4019239ba
commit 18047f2611
1 changed files with 25 additions and 24 deletions

View File

@ -24,10 +24,10 @@
Mark J Crane <markjcrane@fusionpbx.com>
*/
if (strlen($_SESSION['switch']['scripts']['dir']) > 0) {
if ($domains_processed == 1) {
//update the notifications table
if (is_array($_SESSION['switch']['scripts'])) {
$sql = "select count(*) as num_rows from v_notifications ";
$prep_statement = $db->prepare($sql);
if ($prep_statement) {
@ -50,6 +50,7 @@ if (strlen($_SESSION['switch']['scripts']['dir']) > 0) {
unset($prep_statement, $row);
}
}
}
?>