mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Error display fix.
This commit is contained in:
@@ -1099,7 +1099,10 @@ class news_admin_ui extends e_admin_ui
|
|||||||
|
|
||||||
$this->log_ping($response_value->serialize(), true);
|
$this->log_ping($response_value->serialize(), true);
|
||||||
|
|
||||||
|
/** @var xmlrpcval $fl_error */
|
||||||
$fl_error = $response_value->structmem('flerror');
|
$fl_error = $response_value->structmem('flerror');
|
||||||
|
|
||||||
|
/** @var xmlrpcval $message */
|
||||||
$message = $response_value->structmem('message');
|
$message = $response_value->structmem('message');
|
||||||
|
|
||||||
// read the response
|
// read the response
|
||||||
@@ -1392,7 +1395,7 @@ class news_admin_ui extends e_admin_ui
|
|||||||
if($qry !== e_QUERY)
|
if($qry !== e_QUERY)
|
||||||
{
|
{
|
||||||
$mes = e107::getMessage();
|
$mes = e107::getMessage();
|
||||||
$this->show_message('Insufficient permissions!', E_MESSAGE_ERROR, true);
|
$mes->add('Insufficient permissions!', E_MESSAGE_ERROR, true);
|
||||||
session_write_close();
|
session_write_close();
|
||||||
header('Location: '.$url);
|
header('Location: '.$url);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user