Skip to content

Instantly share code, notes, and snippets.

@marcogrueter
Created June 28, 2013 10:39
Show Gist options
  • Save marcogrueter/5883844 to your computer and use it in GitHub Desktop.
Save marcogrueter/5883844 to your computer and use it in GitHub Desktop.
<?php
class Plugin_registration {
public function is_open()
{
$limit = $this->attribute('limit', 150);
return ! ($limit >= $this->db->count_all('your_stream_table'));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment