Fixed some errors
This commit is contained in:
parent
2fe4ded8ec
commit
b04f98395a
3 changed files with 3 additions and 2 deletions
|
@ -64,7 +64,7 @@ class Clipbucket_db
|
|||
$start = microtime();
|
||||
$result = $this->mysqli->query($query);
|
||||
$end = microtime();
|
||||
$timetook = $end - $start;
|
||||
$timetook = (int) $end - (int) $start;
|
||||
devWitch($query, 'select', $timetook);
|
||||
} else {
|
||||
$result = $this->mysqli->query($query);
|
||||
|
|
|
@ -24,6 +24,7 @@ class errorhandler extends ClipBucket {
|
|||
private function add_error($message=NULL,$id=NULL) {
|
||||
global $ignore_cb_errors;
|
||||
//if id is set, error will be generated from error message list
|
||||
$this->error_list = [];
|
||||
if(!$ignore_cb_errors)
|
||||
$this->error_list[] = $message;
|
||||
//$this->error_list['all_errors']['user_error']['critical_priority'][] = $message;
|
||||
|
|
|
@ -593,7 +593,7 @@ class myquery {
|
|||
* @param VID
|
||||
* @param THUMB NUM
|
||||
*/
|
||||
function set_default_thumb($vid,$thumb,$version)
|
||||
function set_default_thumb($vid,$thumb,$version = '')
|
||||
{
|
||||
global $cbvid;
|
||||
return $cbvid->set_default_thumb($vid,$thumb,$version);
|
||||
|
|
Loading…
Add table
Reference in a new issue