Skip to content

Commit 3af05e5

Browse files
author
Donald A. Lobo
committed
CRM-12656
---------------------------------------- * CRM-12656: Strict error notice in Joomla civicrmicon.php file http://issues.civicrm.org/jira/browse/CRM-12656
1 parent ad89e43 commit 3af05e5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

admin/configure.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function civicrm_source($fileName, $lineMode = FALSE) {
171171
foreach ($queries as $query) {
172172
$query = trim($query);
173173
if (!empty($query)) {
174-
$res = &$db->query($query);
174+
$res =& $db->query($query);
175175
if (PEAR::isError($res)) {
176176
die("Cannot execute $query: " . $res->getMessage());
177177
}
@@ -185,7 +185,7 @@ function civicrm_source($fileName, $lineMode = FALSE) {
185185
$string = ereg_replace("\n\-\-[^\n]*\n", "\n", $string);
186186
$string = trim($string);
187187
if (!empty($string)) {
188-
$res = &$db->query($string);
188+
$res =& $db->query($string);
189189
if (PEAR::isError($res)) {
190190
die("Cannot execute $string: " . $res->getMessage());
191191
}

admin/plugins/civicrm/civicrm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function onUserAfterDelete($user, $succes, $msg) {
8484
public function onUserLogin($user, $options = array()) {
8585
$app = JFactory::getApplication();
8686
if ( $app->isAdmin() ) {
87-
$jUser =& JFactory::getUser();
87+
$jUser = JFactory::getUser();
8888
$jId = $jUser->get('id');
8989
self::civicrmResetNavigation( $jId );
9090
}

admin/plugins/civicrmicon/civicrmicon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function onGetIcons($context) {
5656
background-image:url("'.$img.'");
5757
}
5858
';
59-
$document =& JFactory::getDocument();
59+
$document = JFactory::getDocument();
6060
$document->addStyleDeclaration( $css );
6161
$icon[0]['image'] = 'civicrm';
6262
} else {

0 commit comments

Comments
 (0)