Spannende Beobachtung!
Alle genannten Zeilen enden auf
='.get_id(), und erhalten dadurch eine in der URL, Formulardaten oder in der Session enthaltene ID. Das ist eigentlich IMMER ein eindeutiger Wert und kein Array, daher ist die Warnung sehr verwunderlich. Ist bei mir noch nie aufgetreten.
Warum auch immer bei Dir aus eindeutigen IDs plötzlich ein mehrdeutiges Array wird.
Möglich wäre folgendes Workaround:
Ändere die Funktion (ab Zeile 19)
Code: Alles auswählen
if (!function_exists('get_id')) {
function get_id() { // needed cause of different id-names for template and rubric ids
global $placeholder, $template_id;
$id='';
if (isset($_SESSION['SID_rubric_id'])) $id = $_SESSION['SID_rubric_id'];
if (isset($_REQUEST['id'])) $id = $_REQUEST['id'];
if (isset($_REQUEST['template'])) $id = $_REQUEST['template'];
if (isset($_REQUEST['templates_id'])) $id = $_REQUEST['templates_id'];
if (isset($_REQUEST['rubric_id'])) $id = $_REQUEST['rubric_id'];
if (isset($template_id)) $id = $template_id;
if (isset($placeholder['templates_id'])) $id = $placeholder['templates_id'];
return $id;
}
}
zu
Code: Alles auswählen
if (!function_exists('get_id')) {
function get_id() { // needed cause of different id-names for template and rubric ids
global $placeholder, $template_id;
$id='';
if (isset($_SESSION['SID_rubric_id'])) $id = $_SESSION['SID_rubric_id'];
if (isset($_REQUEST['id'])) $id = $_REQUEST['id'];
if (isset($_REQUEST['template'])) $id = $_REQUEST['template'];
if (isset($_REQUEST['templates_id'])) $id = $_REQUEST['templates_id'];
if (isset($_REQUEST['rubric_id'])) $id = $_REQUEST['rubric_id'];
if (isset($template_id)) $id = $template_id;
if (isset($placeholder['templates_id'])) $id = $placeholder['templates_id'];
if (!is_array($id)) return $id;
}
}
also wird aus
return $id;
nun
if (!is_array($id)) return $id;