Ignore:
Timestamp:
Jun 3, 2011, 6:08:34 PM (13 years ago)
Author:
mistic100
Message:

some tests to avoid errors, css bug with IE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Front2Back/Front2Back.php

    r11217 r11218  
    4747  if (!empty($conf['Front2Back'][7][$user['language']]))
    4848  {
    49     $conf['Front2Back'][7] = explode('|', $conf['Front2Back'][7][$user['language']]);
     49    if (strpos($conf['Front2Back'][7][$user['language']], '|') !== false)
     50    {
     51      $conf['Front2Back'][7] = explode('|', $conf['Front2Back'][7][$user['language']]);
     52    }
     53    else
     54    {
     55      $conf['Front2Back'][7] = array($conf['Front2Back'][7][$user['language']], $conf['Front2Back'][7][$user['language']]);
     56    }
    5057  }
    5158  else if (!empty($conf['Front2Back'][7]['default']))
    5259  {
    53     $conf['Front2Back'][7] = explode('|', $conf['Front2Back'][7]['default']);
     60    if (strpos($conf['Front2Back'][7]['default'], '|') != false)
     61    {
     62      $conf['Front2Back'][7] = explode('|', $conf['Front2Back'][7]['default']);
     63    }
     64    else
     65    {
     66      $conf['Front2Back'][7] = array($conf['Front2Back'][7]['default'], $conf['Front2Back'][7]['default']);
     67    }
    5468  }
    5569  else
Note: See TracChangeset for help on using the changeset viewer.