Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 22nd May 2015, 08:59 PM   #1
Active Warrior
 
Join Date: 2009
Posts: 49
Thanks: 11
Thanked 6 Times in 6 Posts
Default
Warning in code - Help appreciated
Share on: 
fb share twitter share gplus share more share

This is the warning:

Warning: trim() expects parameter 1 to be string, array given in "file"on line 152

This is Line 152:

$selected = ( trim( $option ) == trim( $submitted_value ) || ( $is_multiselect && in_array( trim( $option ), $submitted_value ) ) ) ? 'selected="selected"' : '';

I'd appreciate any help, Thanks.
BC27 is offline  
Unread 23rd May 2015, 01:03 AM   #2
Warrior Member
 
Join Date: 2015
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default
Re: Warning in code - Help appreciated
Share on: 
fb share twitter share gplus share more share

$option or $submitted_value is an array rather then a string value. You may want to just try dumping those variables and seeing what the issue is.
Xorb is offline  
Unread 23rd May 2015, 11:22 AM   #3
Active Warrior
 
Join Date: 2009
Posts: 49
Thanks: 11
Thanked 6 Times in 6 Posts
Default
Re: Warning in code - Help appreciated
Share on: 
fb share twitter share gplus share more share

Thanks Xorb,

Couldn't figure it out. Looks like the Multiple Selection Box has an issue. Made a new form without it. Will just have to do.

I appreciate the help.
BC27 is offline  
Closed Thread


Bookmarks

Tags
appreciated, code, warning


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 02:45 AM.