@@ -64,7 +64,9 @@ |
||
| 64 | 64 | //return call_user_func($callback, true); |
| 65 | 65 | } |
| 66 | 66 | if (!isset($_POST['g-recaptcha-response'])) { |
| 67 | - if (ob_get_level()) ob_end_clean(); |
|
| 67 | + if (ob_get_level()) { |
|
| 68 | + ob_end_clean(); |
|
| 69 | + } |
|
| 68 | 70 | \JSON\json::json(['error' => true, 'message' => 'Recaptcha token required']); |
| 69 | 71 | exit; |
| 70 | 72 | } |
@@ -297,14 +297,16 @@ |
||
| 297 | 297 | $str = ''; |
| 298 | 298 | foreach ($trace as $caller) { |
| 299 | 299 | $str .= " -- Called by {$caller['function']}"; |
| 300 | - if (isset($caller['class'])) |
|
| 301 | - $str .= " From Class {$caller['class']}"; |
|
| 300 | + if (isset($caller['class'])) { |
|
| 301 | + $str .= " From Class {$caller['class']}"; |
|
| 302 | + } |
|
| 302 | 303 | } |
| 303 | 304 | } else { |
| 304 | 305 | $caller = $trace[2]; |
| 305 | 306 | $str = "Called by {$caller['function']}"; |
| 306 | - if (isset($caller['class'])) |
|
| 307 | - $str .= " From Class {$caller['class']}"; |
|
| 307 | + if (isset($caller['class'])) { |
|
| 308 | + $str .= " From Class {$caller['class']}"; |
|
| 309 | + } |
|
| 308 | 310 | } |
| 309 | 311 | return $str; |
| 310 | 312 | } |