From 0373cb06765244d51a218633d258a74c5cbb04a6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 8 May 2009 17:48:30 +0000 Subject: Use lower-case aliases for greater portability (thanks Romain LE DISEZ) --- core/libraries/ORM_MPTT.php | 4 ++-- core/views/admin_block_platform.html.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'core') 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 @@ phpversion())) ?>
  • - Database::instance()->query("SELECT version() as V")->current()->V)) ?> + Database::instance()->query("SELECT version() as v")->current()->v)) ?>
  • -- cgit v1.2.3