Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#18 Literals used in PHP which also exist in db tables

open
nobody
None
5
2012-10-29
2010-06-21
Nathan Gibson
No

The published status with the value of 2 is referenced in orca.php and this value is also found in the table fez_status

eg.
orca.php:45:$filter["searchKey".Search_Key::getID("Status")] = 2; // enforce published records only
orca.php:46:$filter["searchKey".Search_Key::getID("Object Type")] = 2; // enforce collection level objects only
stats.php:80: $options["searchKey".Search_Key::getID("Status")] = 2; // enforce published records only

Discussion

  • Nathan Gibson
    Nathan Gibson
    2010-06-21

    These should be loaded from the database the first time that are needed or on application start.