mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
The goal is to increase confidence in fusionpbx, one step is to run by default with error_reporting (E_ALL ^ E_NOTICE);
So, please find in this set numerous small changes which eliminate numerous php warning messages. Also, a small bug fix in an sql statistics routine, naming a count(*) field as count, so displaying correct detail. If any of the proposed changes are omitted, the relevant page will experience php warnings. There are no doubt fusionpbx pages I've yet to visit that still generate warnings, this set is nearly certainly not comprehensive.
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
}
|
||||
|
||||
//class auto loader
|
||||
if (!class_exists(auto_loader)) {
|
||||
if (!class_exists('auto_loader')) {
|
||||
class auto_loader {
|
||||
public function __construct() {
|
||||
spl_autoload_register(array($this, 'loader'));
|
||||
@@ -76,7 +76,7 @@
|
||||
require_once "resources/switch.php";
|
||||
|
||||
//change language on the fly - for translate tool (if available)
|
||||
if ($_REQUEST['view_lang_code'] != '') {
|
||||
if (isset($_REQUEST['view_lang_code']) && ($_REQUEST['view_lang_code']) != '') {
|
||||
$_SESSION['domain']['language']['code'] = $_REQUEST['view_lang_code'];
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user