From 4944070e79d4914ba0503e6e90c194cbd766dc38 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 20 Feb 2014 02:30:37 -0800 Subject: vsprintf error on update --- include/Contact.php | 4 ++-- install/update.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Contact.php b/include/Contact.php index 2dab62fd8..09f7925cb 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -81,7 +81,7 @@ function vcard_from_xchan($xchan, $observer = null, $mode = '') { if($a->poi) { $xchan = $a->poi; } - elseif($a->profile['channel_hash']) { + elseif(is_array($a->profile) && $a->profile['channel_hash']) { $r = q("select * from xchan where xchan_hash = '%s' limit 1", dbesc($a->profile['channel_hash']) ); @@ -114,7 +114,7 @@ function vcard_from_xchan($xchan, $observer = null, $mode = '') { return replace_macros(get_markup_template('xchan_vcard.tpl'),array( '$name' => $xchan['xchan_name'], - '$photo' => ((array_key_exists('photo',$a->profile)) ? $a->profile['photo'] : $xchan['xchan_photo_l']), + '$photo' => ((is_array($a->profile) && array_key_exists('photo',$a->profile)) ? $a->profile['photo'] : $xchan['xchan_photo_l']), '$follow' => $xchan['xchan_addr'], '$connect' => $connect, '$newwin' => (($mode === 'chanview') ? t('New window') : ''), diff --git a/install/update.php b/install/update.php index 3e39a5b4c..7d1305863 100644 --- a/install/update.php +++ b/install/update.php @@ -1088,7 +1088,7 @@ function update_r1097() { // fix some mangled hublocs from a bug long ago - $r = q("select hubloc_id, hubloc_addr from hubloc where hubloc_addr like '%/%'"); + $r = q("select hubloc_id, hubloc_addr from hubloc where hubloc_addr like '%%/%%'"); if($r) { foreach($r as $rr) { q("update hubloc set hubloc_addr = '%s' where hubloc_id = %d limit 1", -- cgit v1.2.3 From a3191996e72012c2c4e0b50003755e4984ad1e99 Mon Sep 17 00:00:00 2001 From: marijus Date: Thu, 20 Feb 2014 19:54:16 +0100 Subject: fixes issue #326 initial scale to big --- view/tpl/head.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/tpl/head.tpl b/view/tpl/head.tpl index b96c46dd7..c676cd773 100755 --- a/view/tpl/head.tpl +++ b/view/tpl/head.tpl @@ -1,6 +1,6 @@ - +