1
0
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:
CaMer0n 2009-11-10 02:26:16 +00:00
parent e55393412d
commit 17c590efd2

View File

@ -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);