mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
* new account.login view for tibiacom template
* added new indicator icons for create account, create character and change character name * attempt to fix incorrect views counter behavior (its resetting to 0 in some cases) * moved check_* functions to class Validator * from now all validators ajax requests will fire onblur instead of onkeyup * ajax requests returns now json instead of xml * added 404 response when file is not found * fixed gallery
This commit is contained in:
@@ -76,17 +76,17 @@ if(isset($_GET['image']))
|
||||
$image = $image->fetch();
|
||||
else
|
||||
{
|
||||
echo 'Image with this name does not exists.';
|
||||
echo 'Image with this id does not exists.';
|
||||
return;
|
||||
}
|
||||
|
||||
$previous_image = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'gallery` WHERE `id` = ' . $db->quote($image['id'] - 1) . ' ORDER by `ordering`;');
|
||||
$previous_image = $db->query('SELECT `id` FROM `' . TABLE_PREFIX . 'gallery` WHERE `id` = ' . $db->quote($image['id'] - 1) . ' ORDER by `ordering`;');
|
||||
if($previous_image->rowCount() == 1)
|
||||
$previous_image = $previous_image->fetch();
|
||||
else
|
||||
$previous_image = NULL;
|
||||
|
||||
$next_image = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'gallery` WHERE `id` = ' . $db->quote($image['id'] + 1) . ' ORDER by `ordering`;');
|
||||
$next_image = $db->query('SELECT `id` FROM `' . TABLE_PREFIX . 'gallery` WHERE `id` = ' . $db->quote($image['id'] + 1) . ' ORDER by `ordering`;');
|
||||
if($next_image->rowCount() == 1)
|
||||
$next_image = $next_image->fetch();
|
||||
else
|
||||
|
Reference in New Issue
Block a user