[cpg1.4.x]: function list_cat_albums -> Hardcoded value 10000 [cpg1.4.x]: function list_cat_albums -> Hardcoded value 10000
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[cpg1.4.x]: function list_cat_albums -> Hardcoded value 10000

Started by Makc666, November 10, 2008, 03:04:27 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Makc666

In file:
index.php

We have a hardcoded value 10000 in code:
$cat_owner_id = ($cat > 10000)?(10000 - $cat):(10001);

I think it must be replaced by this one:
$cat_owner_id = ($cat > FIRST_USER_CAT)?(FIRST_USER_CAT - $cat):(FIRST_USER_CAT+1);

Joachim Müller

That's wrong as far as I can see. Personal galleries start at 10000 no matter what.