]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/createsim.php
user_id is primary key for user_location_prefs
[quix0rs-gnu-social.git] / scripts / createsim.php
index 71827ba5b73b9996c07701cb39df92cb8a299345..1266a9700b674ca58f76551b5417eee55cac5667 100644 (file)
@@ -1,8 +1,8 @@
 #!/usr/bin/env php
 <?php
 /*
- * Laconica - a distributed open-source microblogging tool
- * Copyright (C) 2008, 2009, Control Yourself, Inc.
+ * StatusNet - the distributed open-source microblogging tool
+ * Copyright (C) 2008, 2009, StatusNet, Inc.
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
@@ -101,7 +101,7 @@ function newSub($i)
 
     $to = User::staticGet('nickname', $tunic);
 
-    if (empty($from)) {
+    if (empty($to)) {
         throw new Exception("Can't find user '$tunic'.");
     }