diff --git a/admin/clients.php b/admin/clients.php index 4b9e8a2a..3b481419 100644 --- a/admin/clients.php +++ b/admin/clients.php @@ -99,8 +99,6 @@ if (isset($_POST['client']) && !empty($_POST['client'])) $sql .= "WHERE `uid` = $uid"; - $db->Execute($sql); - if ($db->Execute($sql)) $a = T_("Updated") . ": " . $client; else $a = T_("Update error"); } else @@ -119,8 +117,6 @@ if (isset($_POST['client']) && !empty($_POST['client'])) $sql = "INSERT INTO " . LIME_PREFIX . "users (`users_name`,`password`,`full_name`,`parent_id`,`superadmin`,`email`,`lang`) VALUES ($client, '" . SHA256::hashing($_POST['password']) . "', $firstname ,1,0,$email,'auto')"; - $db->Execute($sql); - if ($db->Execute($sql)) $a = T_("Added") . ": " . $client; else $a = T_("Error adding client"); } else diff --git a/client/index.php b/client/index.php index 3e3ab9ca..aa4bc30a 100644 --- a/client/index.php +++ b/client/index.php @@ -120,10 +120,11 @@ if ($client_id) } else print "
" . T_("No outcomes recorded for this questionnaire") . "
"; - print "" . T_("Lime results") . ""; + print "" . T_("View summary results") . ""; } - $page =''; if (isset($_GET['page'])) $page = $_GET['page'] . "?action=browse&sid=$qsid"; + if (isset($_GET['qsid'])) $qsid = intval($_GET['qsid']); + $page = LIME_URL . "admin/admin.php?action=browse&sid=$qsid"; ?>