aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photo.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-31 16:38:22 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-31 16:38:22 -0700
commitf0b640058427aff2d9d60899f9005980ab89c0ef (patch)
treea7e2f2d7fca62e73f725dc072fa1944150a86bd0 /mod/photo.php
parentceabd7629bab4a490515aa8608acf0738159e1d0 (diff)
downloadvolse-hubzilla-f0b640058427aff2d9d60899f9005980ab89c0ef.tar.gz
volse-hubzilla-f0b640058427aff2d9d60899f9005980ab89c0ef.tar.bz2
volse-hubzilla-f0b640058427aff2d9d60899f9005980ab89c0ef.zip
more lint
Diffstat (limited to 'mod/photo.php')
-rw-r--r--mod/photo.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/photo.php b/mod/photo.php
index 653ca81c2..4e0b85b45 100644
--- a/mod/photo.php
+++ b/mod/photo.php
@@ -16,7 +16,7 @@ function photo_init(&$a) {
return; // NOTREACHED
}
- if(x($type)) {
+ if(isset($type)) {
switch($type) {
case 'profile':
@@ -37,7 +37,7 @@ function photo_init(&$a) {
if(count($r)) {
$data = $r[0]['data'];
}
- if(x($data) === false) {
+ if(! isset($data)) {
$data = file_get_contents(($resolution == 5)
? 'images/default-profile-sm.jpg'
: 'images/default-profile.jpg');