diff options
| -rw-r--r-- | inc/display.php | 3 | ||||
| -rw-r--r-- | js/expand-too-long.js | 2 | ||||
| -rw-r--r-- | post.php | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/inc/display.php b/inc/display.php index ab2daeb6..e5ce1da1 100644 --- a/inc/display.php +++ b/inc/display.php @@ -118,7 +118,8 @@ function error($message, $priority = true, $debug_stuff = false) { }; - $debug_stuff = array_filter($debug_stuff, $debug_callback); + if ($debug_stuff) + $debug_stuff = array_filter($debug_stuff, $debug_callback); die(Element('page.html', array( 'config' => $config, diff --git a/js/expand-too-long.js b/js/expand-too-long.js index 23921eaf..e768aa27 100644 --- a/js/expand-too-long.js +++ b/js/expand-too-long.js @@ -23,7 +23,7 @@ $(function() { url: url, context: document.body, success: function(data) { - var content = $(data).find('#'+url.split('#')[1]).next().html(); + var content = $(data).find('#'+url.split('#')[1]).next().next().html(); body.html(content); } @@ -324,7 +324,7 @@ if (isset($_POST['delete'])) { curl_setopt($curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); if (curl_exec($curl) === false) - error($config['error']['nomove']); + error($config['error']['nomove'] . '<br/>Curl says: ' . curl_error($curl)); curl_close($curl); |
