@@ -46,7 +46,7 @@ |
||
46 | 46 | ['name','=','Other Name'], |
47 | 47 | 'OR' => ['email','LIKE','[email protected]'] |
48 | 48 | ])->execute(); |
49 | -}catch(Exception $er){ |
|
49 | +} catch(Exception $er){ |
|
50 | 50 | |
51 | 51 | die($er->getCode().' - '.$er->getMessage()); |
52 | 52 |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | $this->check_fail(); |
371 | 371 | |
372 | 372 | $this->transaction('commit'); |
373 | - }catch(Exception $er){ |
|
373 | + } catch(Exception $er){ |
|
374 | 374 | $this->transaction('rollback'); |
375 | 375 | throw $er; |
376 | 376 | } |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | |
410 | 410 | $this->transaction('commit'); |
411 | 411 | |
412 | - }catch(Exception $er){ |
|
412 | + } catch(Exception $er){ |
|
413 | 413 | $this->transaction('rollback'); |
414 | 414 | throw $er; |
415 | 415 | } |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | $where .= " {$key} {$v[0]} {$v[1]} :q_{$v[0]} "; |
473 | 473 | $whereData["q_{$v[0]}"] = $v[2]; |
474 | 474 | } |
475 | - }else{ |
|
475 | + } else{ |
|
476 | 476 | $where .= " {$key} {$value[0]} {$value[1]} :q_{$value[0]} "; |
477 | 477 | $whereData["q_{$value[0]}"] = $value[2]; |
478 | 478 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $stmt = Connect::getInstance()->prepare("{$query}"); |
34 | 34 | $stmt->execute($data); |
35 | 35 | return $stmt->fetchAll(PDO::FETCH_ASSOC); |
36 | - }catch(Exception $exception){ |
|
36 | + } catch(Exception $exception){ |
|
37 | 37 | $this->fail = $exception; |
38 | 38 | } |
39 | 39 | return []; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $stmt = Connect::getInstance()->prepare("DESCRIBE {$this->table}"); |
46 | 46 | $stmt->execute(); |
47 | 47 | return $stmt->fetchAll(PDO::FETCH_ASSOC); |
48 | - }catch(Exception $exception){ |
|
48 | + } catch(Exception $exception){ |
|
49 | 49 | $this->fail = $exception; |
50 | 50 | return []; |
51 | 51 | } |