Bugfix: undefined index
This commit is contained in:
parent
442ced0abc
commit
acea6f7eec
|
@ -284,7 +284,8 @@ class m_aws {
|
||||||
$this->_delconf($hostname);
|
$this->_delconf($hostname);
|
||||||
$db->query("DELETE FROM aws WHERE id='$id'");
|
$db->query("DELETE FROM aws WHERE id='$id'");
|
||||||
system("rm ".$this->CACHEDIR."/$hostname/ -rf");
|
system("rm ".$this->CACHEDIR."/$hostname/ -rf");
|
||||||
return $name;
|
return $hostname;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -300,6 +301,7 @@ class m_aws {
|
||||||
function add_stats($hostname,$users="", $hostaliases,$public) {
|
function add_stats($hostname,$users="", $hostaliases,$public) {
|
||||||
global $db,$err,$quota,$mem,$cuid;
|
global $db,$err,$quota,$mem,$cuid;
|
||||||
$err->log("aws","add_stats",$hostname);
|
$err->log("aws","add_stats",$hostname);
|
||||||
|
$ha="";
|
||||||
$r=$this->host_list();
|
$r=$this->host_list();
|
||||||
if (!in_array($hostname,$r) || $hostname=="") {
|
if (!in_array($hostname,$r) || $hostname=="") {
|
||||||
$err->raise("aws",3); // This hostname does not exist
|
$err->raise("aws",3); // This hostname does not exist
|
||||||
|
|
Loading…
Reference in New Issue