Source

yiichat / YiiChatDbHandlerBase.php

Diff from to

YiiChatDbHandlerBase.php

 		only when the records has been filtered (case timer).
 	 */
 	private function getLastPosts($rows, $limit, $last_id){
+		if(count($rows)==0)
+			return array();
 		$n=-1;
 		for($i=0;$i<count($rows);$i++)
 			if($rows[$i]['id']==$last_id){
 				),
 			),//test n
 
+			array(
+			'testid'=>'9',
+			'last_id'=>'',
+			'limit'=>3,
+			'rows'=>array(
+				),
+			'results'=>array(
+				),
+			),//test n
 		);
 		foreach($tests as $test){
 			echo "TEST#".$test['testid'].", last_id[".$test['last_id']."]: ";