Commits

dsls committed 3cbd66d

Strenghtened limit() in dblayer

  • Participants
  • Parent commits cf8874c

Comments (0)

Files changed (1)

File dblayer/dblayer.php

 		if ($arg2 === null) {
 			$sql = ' LIMIT '.(integer) $arg1.' ';
 		} else {
-			$sql = ' LIMIT '.(integer) $arg2.' OFFSET '.$arg1.' ';
+			$sql = ' LIMIT '.(integer) $arg2.' OFFSET '.(integer) $arg1.' ';
 		}
 		
 		return $sql;