]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/toselector.php
Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.x
[quix0rs-gnu-social.git] / lib / toselector.php
index bcbfe86ec96ca55c903cd4df874f7f6ff3f0b108..ba9593f0b33bfb2b62a64bbbcbba0e959b5f5e47 100644 (file)
@@ -132,6 +132,10 @@ class ToSelector extends Widget
         $toArg = $action->trimmed('notice_to');
         $private = $action->boolean('notice_private');
 
+        if (empty($toArg)) {
+            return;
+        }
+
         list($prefix, $value) = explode(':', $toArg);
         switch ($prefix) {
         case 'group':
@@ -142,7 +146,7 @@ class ToSelector extends Widget
             break;
         case 'profile':
             $profile = Profile::staticGet('id', $value);
-            $options['replies'] = $profile->getUri();
+            $options['replies'] = array($profile->getUri());
             if ($private) {
                 $options['scope'] = Notice::ADDRESSEE_SCOPE;
             }