diff --git a/core/install/resources/classes/install_fusionpbx.php b/core/install/resources/classes/install_fusionpbx.php index 41d28ca92c..a889d908ff 100644 --- a/core/install/resources/classes/install_fusionpbx.php +++ b/core/install/resources/classes/install_fusionpbx.php @@ -268,7 +268,7 @@ include "root.php"; //$this->dbh = new PDO('sqlite::memory:'); //sqlite 3 } catch (PDOException $error) { - throw Exception("Failed to create database: " . $error->getMessage()); + throw new Exception("Failed to create database: " . $error->getMessage()); } //add additional functions to SQLite - bool PDO::sqliteCreateFunction ( string function_name, callback callback [, int num_args] ) @@ -312,7 +312,7 @@ include "root.php"; $this->dbh->query($sql); } catch (PDOException $error) { - throw new Exception("error creating database: " . $error->getMessage() . "\n" . $sql ); + throw new Exception("error creating database: " . $error->getMessage() . "\n" . $sql ); } $x++; } diff --git a/themes/enhanced/app_defaults.php b/themes/enhanced/app_defaults.php index 5080029782..e14075d881 100644 --- a/themes/enhanced/app_defaults.php +++ b/themes/enhanced/app_defaults.php @@ -33,8 +33,6 @@ if ($domains_processed == 1) { $x = 0; while (false !== ($file = readdir($backgrounds))) { if ($file != "." AND $file != ".."){ - $new_path = $dir.'/'.$file; - $level = explode('/',$new_path); $ext = pathinfo($file, PATHINFO_EXTENSION); if ($ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "gif") { $x++;