update village deletion in admin panel

This commit is contained in:
unknown
2012-05-21 14:02:16 +03:00
parent 586a713b70
commit 560833e573
+1 -1
View File
@@ -196,7 +196,7 @@ class adm_DB {
}
function DelVillage($wref){
$q = "SELECT * FROM ".TB_PREFIX."vdata WHERE `wref` = $wref";
$q = "SELECT * FROM ".TB_PREFIX."vdata WHERE `wref` = $wref and capital = 0";
$result = mysql_query($q, $this->connection);
if(mysql_num_rows($result) > 0){
mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'Deleted village <b>$wref</b>',".time().")");