leafo / lessphp

LESS compiler written in PHP
http://leafo.net/lessphp
Other
2.2k stars 528 forks source link

Undefined variable $p in lessc::lib_mix() method #214

Closed robations closed 12 years ago

robations commented 12 years ago

Getting an undefined variable notice when mixing alpha colours, originating from line 1682 of lessc.inc.php (v0.3.3).

I've made a fix by comparison with code here:

http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#mix-instance_method

however, don't want to send pull request without first adding a test...

leafo commented 12 years ago

I went ahead and pushed a fix. $p should have been $weight