Skip to content
Permalink
Browse files

Merge pull request #71 from Eggerd/master

Ignore empty result errors
  • Loading branch information...
par0noid committed Oct 11, 2019
2 parents ea18523 + b71d49b commit 5d643e5ec7ec40c2f6b5673a9167ea18d7b71353
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 5d643e5

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