Skip to content
Permalink
Browse files

Empty result set errors are now ignored

  • Loading branch information...
Eggerd committed Oct 10, 2019
1 parent ea18523 commit b71d49b6fa06dcb4cc2221c75544d88d8ab94d1e
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/ts3admin.class.php
@@ -4784,7 +4784,11 @@ private function executeCommand($command, $tracert = null) {
if($tracert != null)
$this->addDebugLog('ErrorID: '.$cutIdAndMsg[0].' | Message: '.$this->unEscapeText($cutIdAndMsg[1]), $tracert[1]['function'], $tracert[0]['line']);
return $this->generateOutput(false, array('ErrorID: '.$cutIdAndMsg[0].' | Message: '.$this->unEscapeText($cutIdAndMsg[1])), false);
if($cutIdAndMsg[0] == 1281){ // if "database empty result set"
return $this->generateOutput(true, array(), '');
}else{
return $this->generateOutput(false, array('ErrorID: '.$cutIdAndMsg[0].' | Message: '.$this->unEscapeText($cutIdAndMsg[1])), false);
}
}else{
return $this->generateOutput(true, array(), $data);
}

0 comments on commit b71d49b

Please sign in to comment.
You can’t perform that action at this time.