Nextrek
Diff Revisions
763
vs
764
for /Android/SmartCharging/endPoints/repositories/UserRepository.php
|
@@ -239,7 +239,7 @@ |
239 |
239 |
|
} |
240 |
240 |
|
} |
241 |
241 |
|
|
242 |
|
- |
public function facebookLogin($fb_user, $user_email, $fb_token, $username = null) { |
|
242 |
+ |
public function facebookLogin($fb_user, $fb_token, $user_email = null, $username = null) { |
243 |
243 |
|
$status = array(); |
244 |
244 |
|
|
245 |
245 |
|
FacebookSession::setDefaultApplication( |
|
@@ -282,7 +282,7 @@ |
282 |
282 |
|
//$result = $this->db->query($sql); |
283 |
283 |
|
|
284 |
284 |
|
$stmt = $this->db->prepare($sql); |
285 |
|
- |
$stmt->bindParam(':email', $user_email); |
|
285 |
+ |
$stmt->bindParam(':email', is_null($user_email) ? $u_email : $user_email); |
286 |
286 |
|
$stmt->execute(); |
287 |
287 |
|
|
288 |
288 |
|
$row = ($stmt->rowCount()>0) ? $stmt->fetch() : null; |