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