|
@@ -83,8 +83,8 @@ discard block |
|
|
block discarded – undo |
|
83
|
83
|
*/ |
|
84
|
84
|
public function where(Array $where, String $condition = 'AND'): ?SimplePHP |
|
85
|
85
|
{ |
|
86
|
|
- foreach($where as $enclosures) { |
|
87
|
|
- $this->where .= $enclosures[0]." ".$enclosures[1]." '".$enclosures[2]."' {$condition} "; |
|
|
86
|
+ foreach ($where as $enclosures) { |
|
|
87
|
+ $this->where .= $enclosures[0] . " " . $enclosures[1] . " '" . $enclosures[2] . "' {$condition} "; |
|
88
|
88
|
} |
|
89
|
89
|
$this->where = "WHERE " . rtrim($this->where, " {$condition} "); |
|
90
|
90
|
|
|
@@ -286,7 +286,7 @@ discard block |
|
|
block discarded – undo |
|
286
|
286
|
{ |
|
287
|
287
|
$message = $pdo ? "Error: PDOCode " . $message : $message; |
|
288
|
288
|
$archive = fopen(dirname(__DIR__) . DIRECTORY_SEPARATOR . "Logs" . DIRECTORY_SEPARATOR . "Logs.txt", 'a+'); |
|
289
|
|
- fwrite($archive, "-----SimplePHPLog-----\n" . date("d/m/Y H:i:s", time()) . " -> ". $message ."\n-------\n"); |
|
|
289
|
+ fwrite($archive, "-----SimplePHPLog-----\n" . date("d/m/Y H:i:s", time()) . " -> " . $message . "\n-------\n"); |
|
290
|
290
|
fclose($archive); |
|
291
|
291
|
return null; |
|
292
|
292
|
} |
Please login to merge, or discard this patch.