We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42822
    • 21 Posts
    Hi,
    i'm using REVO 2.2.6

    i have a listbox tv jobBranche:
    input:
    @SELECT `name`,`id` FROM `starlinkch_branchen` ORDER BY name ASC

    output:
    Delimeter, ','

    for showing the label instead of the value i use
    [[*jobBranche:getTvDisplayName]]


    but i always get:

    Parse error: syntax error, unexpected '?' in ...../core/cache/includes/elements/modsnippet/101.include.cache.php on line 92

    is this a bug or just a wrong setup

    This question has been answered by hamada. See the first response.

    [ed. note: hamada last edited this post 13 years, 7 months ago.]
    • discuss.answer
      • 42822
      • 21 Posts
      Oh never mind, found the bug:
      inside Snippet on line 87:

      return implode($delimiter, $return_values);?


      '?' at the end of line was it..
        • 42822
        • 21 Posts
        But i got another problem:
        Warning: strpos() [function.strpos]: Empty delimiter in

        i think this line in code is causing the error:

         
        //.....
        // The $name may have a prefix, for example where this is part of a getResources template
        // We can specify a prefix to remove via an option
        if (isset($options) && strpos($name, $options) == 0) {
         $name = substr($name, strlen($options) );
        } 
        
        [ed. note: hamada last edited this post 13 years, 7 months ago.]