From 520c2514f2f22e419de7f5825670e7aca0686e17 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 25 Jul 2014 00:26:13 +0200 Subject: [PATCH] Removing of PHP warnings --- convpath/convpath.php | 3 ++- jappixmini/jappixmini.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/convpath/convpath.php b/convpath/convpath.php index 950936942..8deb46cf3 100644 --- a/convpath/convpath.php +++ b/convpath/convpath.php @@ -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) { diff --git a/jappixmini/jappixmini.php b/jappixmini/jappixmini.php index f998acd13..73062aae2 100644 --- a/jappixmini/jappixmini.php +++ b/jappixmini/jappixmini.php @@ -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, ":");