summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-10 13:08:29 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-10 13:08:29 +0200
commitb30426d50d84631201bcdc93439feaa37ce71df9 (patch)
treea2b96fb4fd664b747f1d0a660dea82493611315a /system
parent36de42e4a6c1ef552be8b7b3cb0fb86a4363c7d6 (diff)
Fix count_all()
Diffstat (limited to 'system')
-rw-r--r--system/database/DB_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index e34021e50..d6f9f9c17 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -1334,7 +1334,7 @@ abstract class CI_DB_driver {
// If the item has an alias declaration we remove it and set it aside.
// Basically we remove everything to the right of the first space
- preg_match('/^(('.$preg_ec[0].'[^'.$preg_ec[1].']+'.$preg_ec[1].')|([^'.$preg_ec[0].'][^\s]+))( AS)*(.+)*$/i', 'Test table]', $matches);
+ preg_match('/^(('.$preg_ec[0].'[^'.$preg_ec[1].']+'.$preg_ec[1].')|([^'.$preg_ec[0].'][^\s]+))( AS)*(.+)*$/i', $item, $matches);
if (isset($matches[4]))
{