From 94fbf0d091dbd7b5a36fb5d88683159787780fec Mon Sep 17 00:00:00 2001 From: Margaret Epps Date: Tue, 29 Apr 2014 21:47:36 -0400 Subject: [PATCH] Redid indentation in CRM/Upgrade/Incremental/php/FourFour.php --- CRM/Upgrade/Incremental/php/FourFour.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/CRM/Upgrade/Incremental/php/FourFour.php b/CRM/Upgrade/Incremental/php/FourFour.php index b5d8b58ba7..d909df79c9 100644 --- a/CRM/Upgrade/Incremental/php/FourFour.php +++ b/CRM/Upgrade/Incremental/php/FourFour.php @@ -337,26 +337,26 @@ AND id BETWEEN %1 AND %2 $baseurl = CIVICRM_UF_BASEURL; $baselen = strlen($baseurl); if (substr($imageURL, 0, $baselen)==$baseurl){ - $photo = basename($dao->image_url); - $config = CRM_Core_Config::singleton(); - $fullpath = $config->customFileUploadDir.$photo; + $photo = basename($dao->image_url); + $config = CRM_Core_Config::singleton(); + $fullpath = $config->customFileUploadDir.$photo; if (file_exists($fullpath)){ $newimageurl = CRM_Utils_System::url('civicrm/contact/imagefile', 'photo='.$photo, TRUE); $sql = 'UPDATE civicrm_contact SET image_url=%1 WHERE id=%2'; $params = array( - 1 => array($newimageurl, 'String'), - 2 => array($dao->id, 'Integer'), + 1 => array($newimageurl, 'String'), + 2 => array($dao->id, 'Integer'), ); $updatedao = CRM_Core_DAO::executeQuery($sql, $params); } else{ $failures[$dao->id] = $dao->image_url; + } } - } - else{ + else{ $failures[$dao->id] = $dao->image_url; + } } - } CRM_Core_Error::debug_var('imageUrlsNotUpgraded', $failures); return TRUE; } -- 2.25.1