From b370d8478691d1341a79073f90f6975ac49ea1d1 Mon Sep 17 00:00:00 2001 From: Dmitry Larchikov Date: Sun, 26 Oct 2014 23:13:05 +0300 Subject: [PATCH] develop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit При вызове из командной строки лезут нотисы. Пофиксил. --- upload/library/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/library/includes/functions.php b/upload/library/includes/functions.php index ff885e61c..bac63225a 100644 --- a/upload/library/includes/functions.php +++ b/upload/library/includes/functions.php @@ -1868,7 +1868,7 @@ function bb_realpath ($path) function login_redirect ($url = '') { - redirect(LOGIN_URL . '?redirect='. (($url) ? $url : $_SERVER['REQUEST_URI'])); + redirect(LOGIN_URL . '?redirect='. (($url) ? $url : (isset($_SERVER['REQUEST_URI']) ?: '/'))); } function meta_refresh ($url, $time = 5)