MODs: Ja
Dein Wissensstand: Grundwissen
Link zu Deinem Forum: [url]http://[/url]
PHP Version:
MySQL Version:
Was hast Du gemacht, bevor das Problem aufgetreten ist?
Was hast Du bereits versucht um das Problem zu lösen?
Fehlerbeschreibung und Nachricht
Photo Album Addon v2 for phpBB2 (2), Album Supercharged (1.5.1), Album Hierarchy Mod (1.3.0), Multiple File Upload (1.0.3), notify bildfreigabe ()
ich habe die bisherige Einstellung, persönliche Alben ansehen nur für Benutzer, geändert auf ansehen für alle.
unangemeldete Gäste erhalten aber nun einen Fehler:
Code: Alles auswählen
Couldn't get total number of pictures for album categories and sub categories
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3
SELECT COUNT(p.pic_id) AS count FROM phpbb2_album_cat AS c LEFT JOIN phpbb2_album AS p ON c.cat_id = p.pic_cat_id WHERE c.cat_id IN ()
Line : 925
File : album_hierarchy_sql.phpCode: Alles auswählen
// ------------------------------------------------------------------------
// Returns the number of pictures for current catgory and it subs
// ------------------------------------------------------------------------
function album_get_total_pics($cats)
{
global $db;
$sql_where = " WHERE c.cat_id " . ( (is_array($cats)) ? "IN (". implode(",", $cats) .")" : "= " . $cats);
$sql = "SELECT COUNT(p.pic_id) AS count
FROM " . ALBUM_CAT_TABLE . " AS c
LEFT JOIN " . ALBUM_TABLE . " AS p ON c.cat_id = p.pic_cat_id " . $sql_where;
if (!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Couldn't get total number of pictures for album categories and sub categories", "", __LINE__, __FILE__, $sql);
}
if ($db->sql_numrows($result) == 0)
{
return 0;
}
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
return intval($row['count']);
}