Ignore:
Timestamp:
Jan 28, 2014, 11:42:57 AM (10 years ago)
Author:
mistic100
Message:

use preg_replace_callback, fix random with no argument

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ExtendedDescription/include/functions.inc.php

    r26424 r27027  
    88{
    99  global $template, $user;
     10
     11  $elem_id = intval($elem_id);
     12  if ($elem_id<=0)
     13  {
     14    return '';
     15  }
    1016
    1117  $query = '
     
    193199  if (empty($params['album']))
    194200  {
    195     $query = '
     201    $query.= '
    196202  WHERE 1=1 '
    197203      .get_sql_condition_FandF(array(
Note: See TracChangeset for help on using the changeset viewer.