Replaces 'id' with 'uid' when addressing SQL result maps in the
[platal.git] / bin / lists.create_promo.php
index 35a1200..9032a7c 100755 (executable)
@@ -1,8 +1,8 @@
 #!/usr/bin/php5 -q
 <?php
 
-require_once(dirname(__FILE__) . '/connect.db.inc.php');
-require_once('validations.inc.php');
+require_once dirname(__FILE__) . '/connect.db.inc.php';
+require_once 'validations.inc.php';
 
 global $globals;
 
@@ -24,7 +24,7 @@ $owner = $opt['o'];
 $owner_user = User::getSilent($owner);
 if (!$owner_user) {
     echo "Supplied owner is not valid, aborting.\n";
-    exit 1;
+    exit(1);
 }
 
 // Creates the list.