Index: trunk/kernel/include/parseditem.php
===================================================================
diff -u -r348 -r375
--- trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 348)
+++ trunk/kernel/include/parseditem.php (.../parseditem.php) (revision 375)
@@ -974,7 +974,8 @@
function Query_Item($sql, $offset=-1,$rows=-1)
{
global $Errors;
-
+ //echo "Method QItem [".get_class($this).'], sql: ['.$sql.']
';
+ //if( get_class($this) == 'clsthemefilelist') trace();
$dummy =& $this->GetDummy();
if( !$dummy->TableExists() )
{
@@ -1013,7 +1014,7 @@
}
LogEntry("SQL Loop Start\n");
$count = 0;
-
+
while ($result && !$result->EOF)
{
$count++;
@@ -1026,6 +1027,7 @@
}
LogEntry("SQL Loop End ($count iterations)\n");
+
return $this->Items;
}
@@ -1503,6 +1505,7 @@
function Query_Item($sql,$limit = null, $fix_method = 'set_first')
{
+ //echo "two_method
";
// query itemlist (module items) using $sql specified
// apply direct limit clause ($limit) or calculate it if not specified
// fix invalid page in case if needed by method specified in $fix_method