Commit 8bd0bf0f authored by Philipp's avatar Philipp
Browse files

fixed return 0 for "getLastSort" when queue empty

parent dbc41913
......@@ -23,7 +23,7 @@ class queue {
return 'MYSQL_BIND_RESULTS';
} else {
if ( !$stmt->fetch() ) {
return 'MYSQL_FETCH';
return 0;
} else {
return $res;
}
......
......@@ -23,7 +23,7 @@ class queue {
return 'MYSQL_BIND_RESULTS';
} else {
if ( !$stmt->fetch() ) {
return 'MYSQL_FETCH';
return 0;
} else {
return $res;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment