Change a File Set,

Permalink 0 0 Browser Info Environment
Add a file set,

With no files.

Load the set, rename/amend the name Click Save,

I then get the following
Warning: Invalid argument supplied for foreach() in /homepages/6/d314240079/htdocs/mysite/models/file_set.php on line 98

Warning: Cannot modify header information - headers already sent by (output started at /homepages/6/d314240079/htdocs/mysite/models/file_set.php:99) in /homepages/6/d314240079/htdocs/mysite/concrete/libraries/controller.php on line 357

I was able to get around it by wrapping the foreach in an if_array()
                foreach($files as $fID) {
                    $db->Execute('update FileSetFiles set fsDisplayOrder = ? where fsID = ? and fID = ?', array($i, $this->getFileSetID(), $fID));

Status: New

concrete5 Environment Information


Browser User-Agent String

Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/535.22 (KHTML, like Gecko) Chrome/19.0.1049.3 Safari/535.22