CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Warnings when extension is installed 4.3.5 - findFiles()
Pages: [1]

Author Topic: Warnings when extension is installed 4.3.5 - findFiles()  (Read 1176 times)

rubofvil

  • I’m new here
  • *
  • Posts: 23
  • Karma: 1
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7
  • MySQL version: mysql 5.1
  • PHP version: php 5.2
Warnings when extension is installed 4.3.5 - findFiles()
July 23, 2013, 06:29:56 am
Hello

When extension is installed next warning is showed too many times.
Warning: Invalid argument supplied for foreach() in CRM_Utils_File::findFiles() (line 532 of /data/disk/rpineda/static/plataformas/test/sites/all/modules/civicrm/CRM/Utils/File.php).
(https://github.com/civicrm/civicrm-core/blob/4.3/CRM/Utils/File.php#L532)

Maybe solution is:
      if (is_array(glob("$subdir/$pattern"))) {


Thanks.

Enviroment Aegir
« Last Edit: July 23, 2013, 06:34:23 am by rubofvil »

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Warnings when extension is installed 4.3.5 - findFiles()
July 23, 2013, 10:38:17 am
Sounds good. Do you think you could submit a patch/PR?

rubofvil

  • I’m new here
  • *
  • Posts: 23
  • Karma: 1
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7
  • MySQL version: mysql 5.1
  • PHP version: php 5.2
Re: Warnings when extension is installed 4.3.5 - findFiles()
July 24, 2013, 02:55:16 am
Hello

I saw the possibility to create the Issue, patch is in the Issue
http://issues.civicrm.org/jira/browse/CRM-13108.

Regards

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Warnings when extension is installed 4.3.5 - findFiles()

This forum was archived on 2017-11-26.