Announcement

Symphony's issue tracker has been moved to Github.

Issues are displayed here for reference only and cannot be created or edited.

Browse

Closed#291: [2.0.8RC1] Multiple values in Select Box Link

Hi! Found this issue when I tried to save a multiple values in Select Box Link.

strlen() expects parameter 1 to be string, array given
[path]symphonylibtoolkitclass.field.php line 284

279     }
280
281     public function checkPostFieldData($data, &$message, $entry_id=NULL){
282         $message = NULL;
283         
284         if ($this->get('required') == 'yes' && strlen($data) == 0){
285             $message = __("'%s' is a required field.", array($this->get('label')));
286             
287             return self::__MISSING_FIELDS__;
288         }

I was not able to reproduce this error.

I have changed that function to use empty() instead of strlen()

http://github.com/symphony/symphony-2/commit/a1612a5311a3fe0e2dcf2df3bd208523a842c1e8

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details