bug in cpg 130 bug in cpg 130
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

bug in cpg 130

Started by chenglee, July 17, 2004, 11:25:42 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

chenglee

version cpg-130

in include/functions.inc.php
line number 436
code $FORBIDDEN_SET = "p.aid NOT IN (".substr($set, 0, -1).') ';
it should be $FORBIDDEN_SET = "a.aid NOT IN (".substr($set, 0, -1).') ';

otherwise when user hide personal album,than in index.php file,list_users() function cann't show some user album(when list user album and user picture is empty)

chenglee

Quote from: chenglee on July 17, 2004, 11:25:42 AM
version cpg-130

in include/functions.inc.php
line number 436
code $FORBIDDEN_SET = "p.aid NOT IN (".substr($set, 0, -1).') ';
it should be $FORBIDDEN_SET = "a.aid NOT IN (".substr($set, 0, -1).') ';

otherwise when user hide personal album,than in index.php file,list_users() function cann't show some user album(when list user album and user picture is empty)

sorry cann't change in include/functions.inc.php,it generate new problem..
so i change i index.php in list_users() funciton

replace this line if ($FORBIDDEN_SET != "") $sql .= "WHERE $FORBIDDEN_SET ";
to

       if ($FORBIDDEN_SET != "")
       {
           $FORBIDDEN_SET = str_replace('p.aid', 'a.aid',$FORBIDDEN_SET);
           $sql .= "WHERE $FORBIDDEN_SET ";
       }



Joachim Müller

cpg1.3.0 is outdated, since cpg1.3.1 has been released. Please upgrade to cpg1.3.1 and report if this fixes your issues.

GauGau