Fixed 'WHER' typo in query

Sorry, unit test will come soon...
This commit is contained in:
Stefan Rink
2019-04-27 14:08:13 +02:00
committed by GitHub
parent f5fd0c3856
commit 19aad6636b

View File

@@ -1508,7 +1508,7 @@ class ClonOS {
$db=new Db('base','vpnet');
if(!$db->isConnected()) return array('error'=>true,'res'=>'Database error');
$res=$db->update('DELETE FROM vpnet WHER idx='.(int)$form['vpnet_id']);
$res=$db->update('DELETE FROM vpnet WHERE idx='.(int)$form['vpnet_id']);
if($res===false) return array('error'=>true,'res'=>print_r($res,true));
return array('error'=>false,'vpnet_id'=>$form['vpnet_id']);