a.binder 8 лет назад
Родитель
Сommit
ee07038dfb
2 измененных файлов с 2 добавлено и 2 удалено
  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;
 		}