]> 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 71ed3bf7227ff2feb5ce4427c183c07be44a03f4..1266a9700b674ca58f76551b5417eee55cac5667 100644 (file)
@@ -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'.");
     }