Ticket #2603 (closed defect: wontfix)
line 104 of /sapphire/filesystem/folder.php - check if the name is valid....
| Reported by: | nicolaas | Assigned to: | ischommer |
|---|---|---|---|
| Type: | defect | Priority: | minor |
| Milestone: | 2.2.3* | Component: | CMS - Files and Images section |
| Version: | 2.2.2 | Severity: | medium effort / impact |
| Keywords: | /sapphire, filesystem, folder.php | Cc: | |
| Due date: | Hours: |
Description
I got an error on a site that related back to the following lines:
foreach($dbChildren as $dbChild) {
$className = $dbChildClassName?; $hasDbChild[$dbChildName?] = new $className($dbChild);
}
I changed this to:
foreach($dbChildren as $dbChild) {
$className = $dbChildClassName?; if($className) {
$hasDbChild[$dbChildName?] = new $className($dbChild);
}
} This meant that my client was still able to see the assets in the CMS (and not just get a PHP error). Obviously there is some error somewhere in the DB, but adding that line takes care of this more gracefully.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
