------------------------------------------------------------
revno: 1107
committer: Roger Martin <[email protected]>
branch nick: aikiframework
timestamp: Tue 2012-02-21 21:34:14 +0100
message:
Bug 914249 corrected
modified:
libs/Engine_aiki.php
--
lp:aikiframework
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk
Your team Aiki Framework Developers is subscribed to branch lp:aikiframework.
To unsubscribe from this branch go to
https://code.launchpad.net/~aikiframework-devel/aikiframework/trunk/+edit-subscription
=== modified file 'libs/Engine_aiki.php'
--- libs/Engine_aiki.php 2012-02-20 21:15:11 +0000
+++ libs/Engine_aiki.php 2012-02-21 20:34:14 +0000
@@ -924,6 +924,7 @@
return $template;
}
+
@@ -1258,8 +1259,12 @@
private function records_num($sql) {
global $db;
+ $sql = trim($sql);
if (!preg_match('/^select(.*) from /Usi', $sql, $select)){
- return false;
+ if ( preg_match('/^select (.*) /Usi',$sql) ) {
+ return 1;
+ }
+ return false;
}
if (stripos($sql, " GROUP BY ") || stripos($sql, " LIMIT")) {
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help : https://help.launchpad.net/ListHelp