API improvements.

This commit is contained in:
Znote
2015-05-23 17:42:07 +02:00
parent 3036d61926
commit 562fde1e1d
6 changed files with 419 additions and 9 deletions

View File

@@ -4,9 +4,7 @@
$response['version']['module'] = 1;
// Fetch number of rows
$rows = getValue($_GET['rows']);
if (!$rows || $rows == 0) $rows = 10;
else $rows = (int)$rows;
$rows = (isset($_GET['rows']) && (int)$_GET['rows'] > 0) ? (int)getValue($_GET['rows']) : 10;
// Show which configuration is used
$response['config']['rows'] = $rows;