Skip to content

Commit 8cb3b8c

Browse files
authored
Fix Gravatar::param_cache typo. (#3)
1 parent 8a4e829 commit 8cb3b8c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
vendor
22
composer.lock
33
*.komodoproject
4+
.idea

Gravatar.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,18 +263,18 @@ public function buildGravatarURL($email, $hash_email = true)
263263
}
264264

265265
// Stuff the request params into the param_cache property for later reuse
266-
$this->params_cache = (!empty($params)) ? '?' . implode('&', $params) : '';
266+
$this->param_cache = (!empty($params)) ? '?' . implode('&', $params) : '';
267267
}
268268

269269
// Handle "null" gravatar requests.
270270
$tail = '';
271271
if(empty($email))
272272
{
273-
$tail = !empty($this->params_cache) ? '&f=y' : '?f=y';
273+
$tail = !empty($this->param_cache) ? '&f=y' : '?f=y';
274274
}
275275

276276
// And we're done.
277-
return $url . $this->params_cache . $tail;
277+
return $url . $this->param_cache . $tail;
278278
}
279279

280280
/**

0 commit comments

Comments
 (0)