/extremedating/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/extremedating/trunk

« back to all changes in this revision

Viewing changes to get_image.php

  • Committer: Gustav Hatvigsson
  • Date: 2013-04-13 23:15:23 UTC
  • mto: This revision was merged to the branch mainline in revision 43.
  • Revision ID: gustav.hartvigsson@gmail.com-20130413231523-43e2ubbnrmk80g51
Fixed the gawd damn get_image.php thingies...

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
  $tuples = $db->query($query);
130
130
  //var_dump($tuples);
131
131
  $fetch = $tuples->fetchAll();
132
 
  //var_dump($tuples);
133
 
  if($fetch[0]['profileImage'] != "") {
134
 
   echo(base64_decode($fetch[0]['profileImage']));
 
132
  //var_dump($fetch);
 
133
  if(count($fetch) > 0 && $fetch[0]['profileImage'] != "" ) {
 
134
    echo(base64_decode($fetch[0]['profileImage']));
135
135
  } else {
136
136
    echo base64_decode($def);
137
137
  }