瀏覽代碼

PDO config isset

https://github.com/FreshRSS/FreshRSS/issues/868
Alexandre Alapetite 10 年之前
父節點
當前提交
9b512b82e2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Minz/ModelPdo.php

+ 1 - 1
lib/Minz/ModelPdo.php

@@ -53,7 +53,7 @@ class Minz_ModelPdo {
 		$this->current_user = $currentUser;
 		$this->current_user = $currentUser;
 		self::$sharedCurrentUser = $currentUser;
 		self::$sharedCurrentUser = $currentUser;
 
 
-		$driver_options = is_array($conf->db['pdo_options']) ? $conf->db['pdo_options'] : array();
+		$driver_options = isset($conf->db['pdo_options']) && is_array($conf->db['pdo_options']) ? $conf->db['pdo_options'] : array();
 
 
 		try {
 		try {
 			$type = $db['type'];
 			$type = $db['type'];