a.binder 8 năm trước cách đây
mục cha
commit
ee07038dfb
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      SE/se-lib/Core/Pdo.php
  2. 1 1
      SE/se-lib/Core/Storage/Mysql.php

+ 1 - 1
SE/se-lib/Core/Pdo.php

@@ -64,7 +64,7 @@ class Core_Pdo extends PDO {
 		$sth->bindValue(':tbl_name', $tblName, PDO::PARAM_STR);
 		$sth->execute();
 		$structRaw = $sth->fetchAll();
-		if (empty($structRaw)) throw new Exception("Empty struct for table '{$tblName}' (tried :db_name = ".$this->getDatabaseName()." ", 404);
+		if (empty($structRaw)) throw new Exception("Empty struct for table '{$tblName}'", 404);
 		foreach ($structRaw as $field) {
 			$struct[$field['name']] = $field;
 		}

+ 1 - 1
SE/se-lib/Core/Storage/Mysql.php

@@ -57,7 +57,7 @@ class Core_Storage_Mysql extends Core_StorageBase {
 		$sth->bindValue(':tbl_name', $tblName, PDO::PARAM_STR);
 		$sth->execute();
 		$structRaw = $sth->fetchAll();
-		if (empty($structRaw)) throw new Exception("Empty struct for table '{$tblName}' (tried :db_name = ".$this->getDatabaseName()." ", 404);
+		if (empty($structRaw)) throw new Exception("Empty struct for table '{$tblName}'", 404);
 		foreach ($structRaw as $field) {
 			$struct[$field['name']] = $field;
 		}