Thomas Hochstein 1632a172f3 Set empty limit to "" in serendipity_fetchEntries.
If $limit is empty(), no limit is set, so we can
set the LIMIT statement to "" to achieve the same.

But an empty() $limit can be "0", so the
generated SQL statement could end with "0"
instead of the LIMIT statement. We catch this
with forcing an empty() $limit to "".

Fixes #636.
(No matter that this shouldn't even happen.)

Signed-off-by: Thomas Hochstein <thh@inter.net>
2020-03-21 18:08:40 +01:00
..
2019-08-17 13:57:54 +02:00
2017-04-06 22:26:07 +02:00
2019-04-27 18:13:16 +02:00
2017-04-06 22:26:07 +02:00
2017-04-06 22:26:07 +02:00
2015-08-07 15:46:36 +02:00
2014-12-10 14:34:54 +01:00