From 467eea36fe0ffece5a5f00808cfc2a33ad0b4c40 Mon Sep 17 00:00:00 2001 From: Amaury Balmer Date: Sat, 8 Nov 2014 18:12:20 +0100 Subject: [PATCH] Fix notice --- inc/class.client.tagcloud.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/class.client.tagcloud.php b/inc/class.client.tagcloud.php index 06a779e9..4b6d15d1 100644 --- a/inc/class.client.tagcloud.php +++ b/inc/class.client.tagcloud.php @@ -100,8 +100,10 @@ public static function extendedTagCloud( $args = '', $copyright = true ) { } // Translate selection order - $args['orderby'] = self::compatOldOrder( $args['cloud_order'], 'orderby' ); - $args['order'] = self::compatOldOrder( $args['cloud_order'], 'order' ); + if ( isset($args['cloud_order']) ) { + $args['orderby'] = self::compatOldOrder($args['cloud_order'], 'orderby'); + $args['order'] = self::compatOldOrder($args['cloud_order'], 'order'); + } // Get correct taxonomy ? $taxonomy = self::_get_current_taxonomy($args['taxonomy']);