Jump to content
Latest News: (loading..)
astecme

Rbanner manager in Frozen fails

Recommended Posts

Hi, when running nbanner manager in the frozen version I get the following error

 

Parse error: syntax error, unexpected 'else' (T_ELSE), expecting function (T_FUNCTION) in /homepages/17/d415605883/htdocs/shop/admin/includes/classes/phplot.php on line 1322

Line 1322 is highlighted below

 

	function SetRgbColor($color_asked) {
		//Returns an array in R,G,B format 0-255
		if ($color_asked == "") { $color_asked = array(0,0,0); };

		if (is_array($color_asked) && (count($color_asked) == 3))
	   		$ret_val =  $color_asked;
		} else { // is asking for a color by string
			if(substr($color_asked,0,1) == "#") {  //asking in #FFFFFF format. 
				$ret_val =  array(hexdec(substr($color_asked,1,2)), hexdec(substr($color_asked,3,2)), hexdec(substr($color,5,2)));
			} else { 
				$ret_val =  $this->rgb_array[$color_asked];
			}
		}
		return $ret_val;
	}

 

Can anyone help please.

Share this post


Link to post
Share on other sites

@astecme   
change the lines what you post it with this lines
 

function SetRgbColor($color_asked) {
		//Returns an array in R,G,B format 0-255
		if ($color_asked == "") { $color_asked = array(0,0,0); };

		if (is_array($color_asked) && (count($color_asked) == 3)){ 
	   		$ret_val =  $color_asked;
		} else { // is asking for a color by string
			if(substr($color_asked,0,1) == "#") {  //asking in #FFFFFF format. 
				$ret_val =  array(hexdec(substr($color_asked,1,2)), hexdec(substr($color_asked,3,2)), hexdec(substr($color,5,2)));
			} else { 
				$ret_val =  $this->rgb_array[$color_asked];
			}
		}
		return $ret_val;
	}

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×