symphonycms/symphony-2 — pull request #1531 by nitriques (2012-11-06 18:30:57+00:00)
Title: Fix a bug when the name of the extension in the meta.xml file is not the good one

(Line 795 in class.extensionmanager.php)[https://github.com/symphonycms/symphony-2/blob/master/symphony/lib/toolkit/class.extensionmanager.php#L795] returns a empty array if the name of the extension is not ok.

Doing so will make (line 271 in class.administration.php)[https://github.com/symphonycms/symphony-2/blob/master/symphony/lib/core/class.administration.php#L271] crash since parameter 2 of the in_array method expects a array, not NULL.

My fix is to throw a new SymphonyErrorPage in order to let you know that extension X does not have the good name.

Maybe this could be done via an alert ???

Please feel free to comment.

(BTW, I do not know how to remove the commit about the php doc from this pull request...)