Changeset 759 for trunk/lib


Ignore:
Timestamp:
Feb 10, 2022 1:48:35 AM (2 years ago)
Author:
anonymous
Message:

Minor

Location:
trunk/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Email.inc.php

    r743 r759  
    263263        $search = array_keys($replacements);
    264264        array_walk($search, function (&$v) {
    265             $v = '{' . mb_strtoupper($v) . '}';
     265            $v = sprintf('{%s}', mb_strtoupper($v));
    266266        });
    267267
  • trunk/lib/TemplateGlue.inc.php

    r615 r759  
    8080
    8181    $row = mysql_fetch_row($qid);
    82     if (preg_match('/^enum|^set/i', $row[1]) && preg_match_all("/'([^']*)'/", $row[1], $enum)) {
     82    if (isset($row[1]) && preg_match('/^enum|^set/i', $row[1]) && preg_match_all("/'([^']*)'/", $row[1], $enum)) {
    8383        if ($sort) {
    8484            natsort($enum[1]);
  • trunk/lib/Utilities.inc.php

    r757 r759  
    361361 * @access public
    362362 * @param  string $text  A string for which to convert to color.
    363  * @return string  A hexadecimal html color.
     363 * @param  float  $n     Brightness value between 0-1.
     364 * @return string        A hexadecimal html color.
    364365 */
    365366function getTextColor($text, $method=1, $n=0.87)
Note: See TracChangeset for help on using the changeset viewer.