]> git.mxchange.org Git - friendica-addons.git/blobdiff - widgets/widgets.php
Merge pull request #30 from fabrixxm/master
[friendica-addons.git] / widgets / widgets.php
old mode 100644 (file)
new mode 100755 (executable)
index 226a34c..47a6e48
@@ -1,7 +1,7 @@
 <?php
 /**
  * Name: Widgets
- * Description: Allow to embed info from friendika into another site
+ * Description: Allow to embed info from friendica into another site
  * Version: 1.0
  * Author: Fabio Comuni <http://kirgroup.com/profile/fabrix/>
  */
@@ -19,7 +19,8 @@ function widgets_uninstall() {
 
 
 function widgets_settings_post(){
-       
+       if(! local_user())
+               return;
        if (isset($_POST['widgets-submit'])){
                del_pconfig(local_user(), 'widgets', 'key');