Fix so fusionpbx doesn't fail on servers with php versions later than 5. (e.g. php7).

Also a few warning causes fixed.
Also, one step along the way to allow freeswitch to be u freeswitch g freeswitch and fusionpbx to run www-data:www-data.
This commit is contained in:
Harry G. Coin
2016-04-25 20:52:21 -05:00
parent 179f4840a8
commit 64eeca8e2d
4 changed files with 11 additions and 10 deletions

View File

@@ -221,7 +221,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$php_bin = 'php.exe';
}
else {
$php_bin = 'php';
$php_bin = 'php5';
}
//add or update the database
@@ -658,7 +658,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
}
$sql = "SELECT * FROM v_users ";
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
foreach($assigned_user_uuids as $assigned_user_uuid) {
if (isset($assigned_user_id)) foreach($assigned_user_uuids as $assigned_user_uuid) {
$sql .= "and user_uuid <> '".$assigned_user_uuid."' ";
}
unset($assigned_user_uuids);