Changeset 119888 in spip-zone for _plugins_/spip-pmb/trunk


Ignore:
Timestamp:
Jan 21, 2020, 12:01:44 PM (11 months ago)
Author:
Sébastien Ducoulombier
Message:

strlen plutôt que count pour une chaîne

Location:
_plugins_/spip-pmb/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/spip-pmb/trunk

    • Property subgit:lock:8dc99ba7c94ee1852c569b09e156220d22474739 set to 2020-01-21T15:37:51.698
  • _plugins_/spip-pmb/trunk/public/pmb.php

    r97760 r119888  
    772772                        $v = $c[2];
    773773                        if ($v !== 'NULL') {
    774                                 if (($v[0] == "'") and ($v[ count($v)-1 ] == "'")) {
     774                                if (($v[0] == "'") and ($v[ strlen($v)-1 ] == "'")) {
    775775                                        $v = substr($v, 1,-1);
    776776                                }
Note: See TracChangeset for help on using the changeset viewer.