Update app_defaults.php

This commit is contained in:
FusionPBX 2017-01-10 01:14:14 -07:00 committed by GitHub
parent 3844b569f7
commit 2a4febfd9a
1 changed files with 27 additions and 24 deletions

View File

@ -24,10 +24,11 @@
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 +51,8 @@ if (strlen($_SESSION['switch']['scripts']['dir']) > 0) {
unset($prep_statement, $row);
}
}
}
?>