The Quest continues...
I managed to almost fix the issue by changing a bit in sharing.inc.php
From:
Code:
$sqlSelect = "SELECT `medID`,
`medExt`,
`medTitle`";
$sqlFrom = " FROM `sharePhotoFiles`";
if ($iID != 0)
{
$sqlWhere = " WHERE `Approved`='true' AND `medProfId`='$iID'";
}
To:
Code:
$sqlSelect = "SELECT `medID`,
`medExt`,
`medTitle`";
$sqlFrom = " FROM `sharePhotoFiles` WHERE `Approved`='true' ";
if ($iID != 0)
{
$sqlWhere = " `medProfId`='$iID'";
}
This works for the latest and random tab, but now gives database query error on top tab.
Bookmarks