Plugin Directory

Changeset 769709


Ignore:
Timestamp:
09/10/2013 12:43:27 PM (12 years ago)
Author:
shauno
Message:

harden up addNewImage() for 3rd party plugins that aren't passing the image object correctly for NGG v2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nextgen-gallery-voting/trunk/ngg-voting.php

    r755230 r769709  
    44Plugin URI: http://shauno.co.za/wordpress/nextgen-gallery-voting/
    55Description: This plugin allows you to add user voting and rating to NextGEN Galleries and Images
    6 Version: 2.6.1
     6Version: 2.6.1.1
    77Author: Shaun Alberts
    88Author URI: http://shauno.co.za
     
    15331533         */
    15341534        function addNewImage($image) {
    1535             if(defined('NEXTGEN_GALLERY_PLUGIN_VERSION') && NEXTGEN_GALLERY_PLUGIN_VERSION >= 2) {
     1535            if(defined('NEXTGEN_GALLERY_PLUGIN_VERSION') && NEXTGEN_GALLERY_PLUGIN_VERSION >= 2 && is_object($image)) {
    15361536                if($image->id() && $image->__get('galleryid')) {
    15371537                    $pid = $image->id();
Note: See TracChangeset for help on using the changeset viewer.