diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/libraries/ORM_MPTT.php | 4 | ||||
-rw-r--r-- | core/views/admin_block_platform.html.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/libraries/ORM_MPTT.php b/core/libraries/ORM_MPTT.php index 6ec4abcf..265cb8fb 100644 --- a/core/libraries/ORM_MPTT.php +++ b/core/libraries/ORM_MPTT.php @@ -286,8 +286,8 @@ class ORM_MPTT_Core extends ORM { * Lock the tree to prevent concurrent modification. */ protected function lock() { - $result = $this->db->query("SELECT GET_LOCK('{$this->table_name}', 1) AS L")->current(); - if (empty($result->L)) { + $result = $this->db->query("SELECT GET_LOCK('{$this->table_name}', 1) AS l")->current(); + if (empty($result->l)) { throw new Exception("@todo UNABLE_TO_LOCK_EXCEPTION"); } } diff --git a/core/views/admin_block_platform.html.php b/core/views/admin_block_platform.html.php index 272e20c1..1a43c715 100644 --- a/core/views/admin_block_platform.html.php +++ b/core/views/admin_block_platform.html.php @@ -10,6 +10,6 @@ <?= t("PHP: %php_version", array("php_version" => phpversion())) ?> </li> <li> - <?= t("MySQL: %mysql_version", array("mysql_version" => Database::instance()->query("SELECT version() as V")->current()->V)) ?> + <?= t("MySQL: %mysql_version", array("mysql_version" => Database::instance()->query("SELECT version() as v")->current()->v)) ?> </li> </ul> |