From: <sy...@us...> - 2008-11-25 16:17:17
|
Revision: 15751 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=15751&view=rev Author: sylvieg Date: 2008-11-25 16:17:07 +0000 (Tue, 25 Nov 2008) Log Message: ----------- [FIX]image gal: when looking for visible gals, do not check public - public is only for download Modified Paths: -------------- trunk/lib/imagegals/imagegallib.php Modified: trunk/lib/imagegals/imagegallib.php =================================================================== --- trunk/lib/imagegals/imagegallib.php 2008-11-25 13:12:46 UTC (rev 15750) +++ trunk/lib/imagegals/imagegallib.php 2008-11-25 16:17:07 UTC (rev 15751) @@ -1419,14 +1419,8 @@ $maxRecords = -1; } - // If the user is not admin then select `it` 's own galleries or public galleries - if (($user != 'admin') and ($tiki_p_admin_galleries != 'y')) { - $whuser = "and `user`=? or `public`=?"; - $bindvars=array('y',$user,'y'); - } else { $whuser = ""; $bindvars=array('y'); - } if ($find) { $findesc = '%' . $find . '%'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |