All pastes #234846 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-11-02 21:10 UTC
rendered paste body
                foreach ($paramarray as $key => $value)
                {
                        if ('orderby' == $key)
                        {
                                $orderby = $value;
                                continue;
                        }
                        // only accept those keys that correspond to
                        // table columns
                        if ( array_key_exists ( $key, Comment::default_fields() ) )
                        {
                                $where[] = "$key = ?";
                                $params[] = $value;
                        }
                }