dever 6 years ago
parent
commit
b77ab30f3e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/Manage.php

+ 3 - 0
lib/Manage.php

@@ -17,6 +17,9 @@ class Manage
     	$type = Dever::param('type', $param);
     	$type = Dever::param('type', $param);
     	$scope = Dever::param('scope', $param);
     	$scope = Dever::param('scope', $param);
 
 
+    	if (!$uid) {
+    		$uid = -1;
+    	}
     	if ($to_uid && $name && $content) {
     	if ($to_uid && $name && $content) {
     		Dever::load('message/lib/data')->push($uid, $to_uid, $name, $content, $type, $project_id, $scope, $id);
     		Dever::load('message/lib/data')->push($uid, $to_uid, $name, $content, $type, $project_id, $scope, $id);
     	}
     	}