Fatal error: Call to - SOLVED

Permalink
Fatal error: Call to a member function getAttributeKeyID() on a non-object
in D:\Portfolio\www.yjpower.com\concrete\libraries\attribute\controller.php on line 159

if you add two attribut with the same key you will got this error.
i add real_name in user attribut
and i add real_name too, to page attribut
there is no error warning duplicate key when you add this

//here's the code :
$ak2 = $akc->getAttributeKeyByHandle($args['akHandle']);
if ($ak2->getAttributeKeyID() != $this->attributeKey->getAttributeKeyID()) {
$error->add(t("An attribute with the handle %s already exists.",$akHandle));
}

it's seem the throw error not work, i can add them without this warning

Hope this will help someone from his headache
http://www.concrete5.org/marketplace/addons/problog/questions-and-d...

why i'm add the same attribut key handle?
http://www.concrete5.org/index.php?cID=254975...

fastcrash