FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » undefined constant "s" (bug or my bad understanding?)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
undefined constant "s" (bug or my bad understanding?) [message #16919] Sun, 29 February 2004 16:21 Go to previous message
oblomov is currently offline  oblomov   Italy
Messages: 12
Registered: February 2004
Karma:
Junior Member
Hi,

still trying to use fudforum classes and functions to integrate it in my mailing list manager / archiver. I'm at a good point (can archive the message but still not the attachment) but step into a strange problem with the function managing post user update, I get a

users.inc error message


<br />
<b>Notice</b>: Use of undefined constant s - assumed 's' in <b>//write_directory/fudforum/2945491008/include/theme/default/users.inc</b > on line <b>32</b><br />



this is the incriminated code:

<?php
$u
= db_sab("SELECT
            s.id AS sid, s.data, s.returnto,
            t.id AS theme_id, t.lang, t.name AS theme_name, t.locale, t.theme, t.pspell_lang, t.theme_opt,                                                                                                          
            u.alias, u.posts_ppg, u.time_zone, u.sig, u.last_visit, u.last_read, u.cat_collapse_status, u.users_opt, u.ignore_list, u.ignore_list, u.buddy_list, u.id, u.group_leader_list, u.email, u.login
            FROM phpgw_fud_ses s
            INNER JOIN phpgw_fud_users u ON u.id=(CASE WHEN s.user_id>2000000000 THEN 1 ELSE s.user_id END)
            INNER JOIN phpgw_fud_themes t ON t.id=u.theme WHERE s.ses_id='"
.s."'");
?>


looks like that 's' in the final line (line 31...) is a mistake as it is used outside quotes while is the table alias, I'm really not sure about it because I don't understand why it works posting through the forum then... I must miss something...





[Updated on: Sun, 29 February 2004 16:26]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: problems with maillist.php (mailing list 2 forum)
Next Topic: I messed it up!!!
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 04:59:45 GMT 2024

Total time taken to generate the page: 0.03983 seconds