@@ -102,9 +102,6 @@ private static function encapsulate($mixed)
102
102
$ key = md5 ($ mixed );
103
103
if (!array_key_exists ($ key , self ::$ object )) {
104
104
$ instance = self ::getInstance ();
105
- echo "<pre> " ;
106
- echo $ mixed ;
107
- echo "</pre> " ;
108
105
$ object = new dbObject ($ instance ->query ($ mixed ), array ("key " => $ key ));
109
106
self ::$ object [$ key ] = $ object ;
110
107
}
@@ -132,10 +129,6 @@ public static function fetch($mixed, $simple = false)
132
129
$ mixed ->extra ['rows ' ] = 0 ;
133
130
}
134
131
$ mixed ->extra ['rows ' ]++;
135
- if ($ mixed ->extra ['rows ' ] == $ mixed ->extra ['totalEntries ' ]) {
136
- unset(self ::$ object [$ mixed ->extra ['key ' ]]);
137
- return false ;
138
- }
139
132
return $ mixed ->getInstance ()->fetch (PDO ::FETCH_ASSOC );
140
133
}
141
134
if ($ mixed instanceof dbObject) {
@@ -325,7 +318,6 @@ public static function page($echo = true, $class = "")
325
318
$ buttons [] = str_replace (array ("{target} " , '{text|number} ' , '{active} ' , '{disabled} ' ), array ($ url . "? " . http_build_query ($ _GET ), $ words ["prev " ], '' , '' ), $ htmlButton );
326
319
}
327
320
}
328
- $ contador = 0 ;
329
321
$ pageCount = 0 ;
330
322
while ($ pageCount <= $ totalPages ) {
331
323
$ pageCount ++;
@@ -551,7 +543,7 @@ public static function delete($table, $rules = array())
551
543
$ newRules [] = $ key . "=: " . "rule_ " . $ key ;
552
544
};
553
545
}
554
- $ sql = "DELETE FROM $ table " . (empty ($ rules ) ? "" : "WHERE " . implode (" AND " , $ newRules )) . "; " ;
546
+ $ sql = "DELETE FROM $ table " . (empty ($ newRules ) ? "" : "WHERE " . implode (" AND " , $ newRules )) . "; " ;
555
547
$ object = self ::getInstance ();
556
548
$ stmnt = self ::prepare ($ object , $ sql );
557
549
if (!empty ($ rules )) {
0 commit comments