Permalink
Browse files

throw an error if is empty on load or run

  • Loading branch information...
1 parent 6a25722 commit 557c97ca1f91120591cefc756eaee2e76a8a51dc @ryanmark ryanmark committed Mar 30, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 mtv.php
View
@@ -54,6 +54,8 @@ function register_app( $name, $path ) {
function load( $apps ) {
global $registered_apps;
+ if ( empty($apps) ) throw new Exception( "No apps have been specified" );
+
# load our models, views and templates
$template_dirs = array();
foreach ( $apps as $name ) {

0 comments on commit 557c97c

Please sign in to comment.