]> git.mxchange.org Git - friendica-addons.git/commitdiff
Removing of PHP warnings
authorMichael Vogel <icarus@dabo.de>
Thu, 24 Jul 2014 22:26:13 +0000 (00:26 +0200)
committerMichael Vogel <icarus@dabo.de>
Thu, 24 Jul 2014 22:26:13 +0000 (00:26 +0200)
convpath/convpath.php
jappixmini/jappixmini.php

index 9509369420fc4fbbcb5f18c0060dccd8c7587749..8deb46cf346cbc09c6a2e979f28b3476f8ed258f 100644 (file)
@@ -34,7 +34,8 @@ function convpath_page_header(&$a, &$o){
 
 function convpath_page_end(&$a, &$o){
        $o = convpath_convert($o);
-       $a->page['aside'] = convpath_convert($a->page['aside']);
+       if (isset($a->page['aside']))
+               $a->page['aside'] = convpath_convert($a->page['aside']);
 }
 
 function convpath_prepare_body_hook(&$a, &$o) {
index f998acd13646a3f3937f50a474d289ae94d0db26..73062aae2050caa9d0a6d027083955e38883b2cf 100644 (file)
@@ -485,7 +485,8 @@ function jappixmini_script(&$a,&$s) {
                dbesc($dfrn_id),
                dbesc($dfrn_id)
        );
-       $name = $r[0]["name"];
+       if (count($r))
+               $name = $r[0]["name"];
 
         $value = $row['v'];
         $pos = strpos($value, ":");