/** * Iterates an associative array and fixes all fields with the key "filename" * using the _fixFilename() method */ static function _fixFilenameArray($a_array) { if (is_array($a_array)) { foreach ($a_array as $k => $v) { if ($v["filename"] != "") { $a_array[$k]["filename"] = ilObjExercise::_fixFilename($a_array[$k]["filename"]); } } } return $a_array; }