mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
2011-09-08 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_api.php: fixed in function "otherParameter2Filter" the simbol of timestamp comparation and separate the AND operator. And added 2 more filters, the "limit" and the "offset". git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4931 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
529f0e0640
commit
d1528e0a72
@ -1,3 +1,9 @@
|
|||||||
|
2011-09-08 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_api.php: fixed in function "otherParameter2Filter" the
|
||||||
|
simbol of timestamp comparation and separate the AND operator. And added
|
||||||
|
2 more filters, the "limit" and the "offset".
|
||||||
|
|
||||||
2011-09-08 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
2011-09-08 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
* godmode/setup/performance.php
|
* godmode/setup/performance.php
|
||||||
|
@ -871,11 +871,19 @@ function otherParameter2Filter($other) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (($other['data'][6] != null) && ($other['data'][6] != -1)) {
|
if (($other['data'][6] != null) && ($other['data'][6] != -1)) {
|
||||||
$filterString .= ' AND utimestamp => ' . $other['data'][6];
|
$filterString .= ' AND utimestamp >= ' . $other['data'][6];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($other['data'][7] != null) && ($other['data'][7] != -1)) {
|
if (($other['data'][7] != null) && ($other['data'][7] != -1)) {
|
||||||
$filterString .= 'AND utimestamp <= ' . $other['data'][7];
|
$filterString .= ' AND utimestamp <= ' . $other['data'][7];
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($other['data'][8] != null) {
|
||||||
|
$filterString .= ' LIMIT ' . $other['data'][8];
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($other['data'][9] != null) {
|
||||||
|
$filterString .= ' OFFSET ' . $other['data'][9];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $filterString;
|
return $filterString;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user