CMS MADE SIMPLE FORGE

Frontend Users

 

[#12104] feu_smarty::get_user_property not working

avatar
Created By: Mario S (rotezecke) (rotezecke)
Date Submitted: Tue Aug 13 00:13:30 -0400 2019

Assigned To: Robert Campbell (calguy1000)
Version: v3.1.2
CMSMS Version: 2.2.10
Severity: Minor
Resolution: Works For Me
State: Open
Summary:
feu_smarty::get_user_property not working
Detailed Description:
feu_smarty::get_user_property('property_name', uid)  returns nothing. I believe
it goes back to the foreach loop in get_user_properties(uid) which populates the
return array incorrectly.

if i just return $res instead of $res2 from get_user_properties(),
get_user_property() works OK.


History

Comments
avatar
Date: 2019-08-21 03:37
Posted By: Mario S (rotezecke) (rotezecke)

[Wed Aug 21 17:20:21.135377 2019] [php7:warn] [pid 1583] [client
127.0.0.1:58414] PHP Warning:  Illegal string offset 'title' in
/var/www/cmsms/modules/FrontEndUsers/lib/class.feu_smarty.php on line 181,
referer: https://hippo.rpc.lan/catalog/account.php
[Wed Aug 21 17:20:21.135402 2019] [php7:warn] [pid 1583] [client
127.0.0.1:58414] PHP Warning:  Illegal string offset 'data' in
/var/www/cmsms/modules/FrontEndUsers/lib/class.feu_smarty.php on line 181,
referer: https://hippo.rpc.lan/catalog/account.php
      
avatar
Date: 2019-09-08 15:50
Posted By: Robert Campbell (calguy1000)

I think this is already fixed...  at least it works for me.
      
avatar
Date: 2019-09-08 19:24
Posted By: Mario S (rotezecke) (rotezecke)

Yes, fixed as of 3.1.3. Forgot to update ticket after 3.1.3 update. (out of
sight, out of mind).
      
Updates

Updated: 2019-09-08 15:51
resolution_id: 5 => 11

Updated: 2019-08-21 03:37
version_id: 31610 => 31614
resolution_id: => 5