サイトトップで、ログインした時に、プロフィールを登録するポップアップを出したいと思っています。
以下の関数を作成しているのですが、メールアドレスでログインした時は表示されますが、Facebookログインだと表示されません。
どなたか解決策をご教示いただけると幸いです。
PHP
1public function getProfileModal() 2 { 3 if ($_SERVER['HTTP_REFERER'] === SITE_LOGIN && $this->_SESSION['userType'] ==="c") { 4 5 $results = $this->db->pdoQuery( 6 'SELECT `aboutMe` 7 FROM `tbl_users` 8 WHERE `userid` = ? 9 ', 10 array( 11 $this->sessUserId, 12 ) 13 )->results(); 14 15 if (empty($results[0]['aboutMe'])) { 16 return get_view(DIR_TMPL . $this->module . "/ask_for_profile_modal-nct.tpl.php"); 17 } 18 } 19 }
あなたの回答
tips
プレビュー