$same_type = variable_get('fivestar_rec_same_type', 1)?'_fivestar_rec_enforce_same_type':NULL;

and then replace string constants with $same_type.

Comments

danithaca’s picture

please double check api.drupal.org. the function variable_get() returns the default value as the 2nd param if the 1st param was not set. also, _fivestar_rec_enforce_same_type is the callback function handle, not a string variable.

marked as won't fix unless more info provided.

thanks for the support though.

danithaca’s picture

Status: Active » Closed (won't fix)