Created
April 13, 2012 13:47
-
-
Save ringmaster/2376966 to your computer and use it in GitHub Desktop.
Allow $post to have $post->client_contact
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function filter_post_client_contact($client, $post) | |
{ | |
if(intval($post->info->client_contact) != 0) { | |
$client = User::get($post->info->client_contact); | |
} | |
return $client; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment