Skip to content

Commit

Permalink
Safety from empty intents
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Oct 8, 2010
1 parent a21f436 commit 2035470
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions request.php
Expand Up @@ -389,6 +389,10 @@ public function get_identifier()
public static function get_for_intent($intent)
{
$request = new midgardmvc_core_request();
if (empty($intent))
{
throw new InvalidArgumentException("No intent provided");
}
if (mgd_is_guid($intent))
{
// MgdSchema node GUID given
Expand Down

0 comments on commit 2035470

Please sign in to comment.