Language: PHP
Label: vulnerable
CWE: CWE-755 \u2014 Improper Handling of Exceptional Conditions
The product does not handle or incorrectly handles an exceptional condition.

Code:
                            save_media(array(
                                'allow_remote_download' => 1,
                                'rel_type' => 'content',
                                'rel_id' => $model->id,
                                'title' => 'Picture',
                                'media_type' => 'picture',
                                'src' => $url,
                            ));
                        }
                    }

                }
                unset($model->media_urls);
            }