Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty comment field in album preventing export from external application #86

Open
Icephale opened this issue Apr 14, 2024 · 0 comments
Open

Comments

@Icephale
Copy link

With versions:

  • Piwigo: 14.3.0
  • community plugin: 14.a
  • php: 8.2.18

strip_tags refuses null parameter and prevent fetching albums informations (tested with digikam exporter and albums with no comment).

PHP message: PHP Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/piwigo/plugins/community/main.inc.php on line 586
Temporarily resolved with a condition:

    if ($row['comment'])
    {
    $row['comment'] = strip_tags(
      trigger_change(
        'render_category_description',
        $row['comment'],
        'ws_categories_getList'
        )
    );
    }
    else
    {
    $row['comment'] = strip_tags(
      trigger_change(
        'render_category_description',
        '',
        'ws_categories_getList'
        )
    );
    }

$row['comment'] = strip_tags(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant