From 9055f794e94fc57d501bfae6e9166a888ff7b871 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 14 Aug 2015 03:10:26 +0300 Subject: [PATCH] fix PHP Notices: Undefined variable:, Undefined index:, Undefined offset: --- admin/extensionstatus.php | 2 +- admin/samplelist.php | 2 +- admin/supervisor.php | 12 ++++++------ waitnextcase_interface2.php | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/admin/extensionstatus.php b/admin/extensionstatus.php index 97a94a7d..1f609742 100644 --- a/admin/extensionstatus.php +++ b/admin/extensionstatus.php @@ -180,7 +180,7 @@ if (isset($_GET['edit']) || isset($_GET['addext'])) WHERE extension_id = " . intval($_GET['edit']); $rs = $db->GetRow($sql); - } + } else $rs = array(); print "" . T_("Go back") . ""; ?> diff --git a/admin/samplelist.php b/admin/samplelist.php index 1ed9721b..16df767c 100644 --- a/admin/samplelist.php +++ b/admin/samplelist.php @@ -111,7 +111,7 @@ if (isset($_POST['ed'])) if (isset($_POST['type'])){ //check that we have correct var types and quantity - $prph = 0; $pcd = 0; $st = 0; $fn = 0; $eml =0; + $prph = 0; $pcd = 0; $st = 0; $fn = 0; $eml =0; $ln =0; foreach($_POST['type'] as $key => $val) { if ($val == 3) $prph++; else if ($val == 5) $pcd++; diff --git a/admin/supervisor.php b/admin/supervisor.php index 8e576ecb..f9fccb89 100644 --- a/admin/supervisor.php +++ b/admin/supervisor.php @@ -158,14 +158,14 @@ if (!empty($rs))