1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Fixes #1535 - Error on User-profile in admin area.

This commit is contained in:
Cameron 2016-04-13 09:12:37 -07:00
parent 4a40104073
commit ae85b7b4d1
3 changed files with 12 additions and 3 deletions

View File

@ -220,7 +220,7 @@ class cron_admin_ui extends e_admin_ui
'cron_description' => $val['description'],
'cron_function' => $class."::".$val['function'],
'cron_tab' => '* * * * *',
'cron_active' => 0,
'cron_active' => '0',
);
$this->cronInsert($insert);

View File

@ -2320,7 +2320,16 @@ class users_admin_form_ui extends e_admin_form_ui
if($mode == 'read')
{
$field = $att['field'];
if($this->getController()->getAction() == 'list')
{
$data = $this->getController()->getListModel()->get($field); // ($att['field']);
}
else
{
$data = $this->getController()->getModel()->get($field); // ($att['field']);
}
return e107::getUserExt()->renderValue($data, $att['ueType']);

View File

@ -135,7 +135,7 @@
parse_str($query,$_GET);
}
e107::getMessage()->addDebug('e_URL in <b>'.$plug.'</b> with key: <b>'.$k.'</b> matched <b>'.$v['regex'].'</b> and included: <b>'.$file.'</b> with $_GET: '.print_a($_GET,true));
e107::getDebug()->log('e_URL in <b>'.$plug.'</b> with key: <b>'.$k.'</b> matched <b>'.$v['regex'].'</b> and included: <b>'.$file.'</b> with $_GET: '.print_a($_GET,true),1);
if(file_exists($file))
{