mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Add extra check for pid not found
This commit is contained in:
parent
e55393412d
commit
17c590efd2
@ -2427,7 +2427,7 @@ class e_admin_ui extends e_admin_controller_ui
|
||||
|
||||
public function getPrimaryName()
|
||||
{
|
||||
if(!varset($this->pid))
|
||||
if(!varset($this->pid) && vartrue($this->fields))
|
||||
{
|
||||
$mes = e107::getMessage();
|
||||
$mes->add("There is no <b>pid</b> set.", E_MESSAGE_WARNING);
|
||||
|
Loading…
x
Reference in New Issue
Block a user