Table = $form["table"]; $item = $m->get($_GET["id"]); // Loop through all the fields foreach ($form["fields"] as $field => $resource) { if ($resource["type"] == "html") { $integrity_errors[$field] = $admin->checkHTML("",$item[$field],$external); } elseif ($resource["type"] == "text" && is_string($item[$field])) { $href = $item[$field]; // External link if (substr($href,0,4) == "http" && strpos($href,WWW_ROOT) === false) { // Only check external links if we've requested them if ($external) { if (strpos($href,"#") !== false) { $href = substr($href,0,strpos($href,"#")-1); } if (!$admin->urlExists($href)) { $integrity_errors[$field] = array("a" => array($href)); } } // Internal link } elseif (substr($href,0,4) == "http") { if (!$admin->urlExists($href)) { $integrity_errors[$field] = array("a" => array($href)); } } } } // Only retrieve these if we have errors as we only need them for URL generation if (count($integrity_errors)) { $action = $admin->getModuleActionForForm($form); $module = $admin->getModule($action["module"]); } foreach ($integrity_errors as $field => $error_types) { foreach ($error_types as $type => $errors) { foreach ($errors as $error) { ?>
  • Edit

    Broken
    Notice: Undefined variable: type in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/ajax/dashboard/check-module-integrity.php on line 53
    Link:
    Notice: Undefined variable: error in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/ajax/dashboard/check-module-integrity.php on line 53
    in field “
    Notice: Undefined variable: form in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/ajax/dashboard/check-module-integrity.php on line 53

    Notice: Trying to access array offset on value of type null in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/ajax/dashboard/check-module-integrity.php on line 53

    Notice: Undefined variable: field in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/ajax/dashboard/check-module-integrity.php on line 53

    Notice: Trying to access array offset on value of type null in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/ajax/dashboard/check-module-integrity.php on line 53

    Notice: Trying to access array offset on value of type null in /home/bidbyte/diagnostico.bidbyte.tec.br/core/admin/ajax/dashboard/check-module-integrity.php on line 53