Beispiel #1
0
 function fetch_info_by_id($owner)
 {
     $this->user = mysql_fetch_assoc(mysql_query("SELECT * FROM " . PLAYERS_TABLE . " WHERE `id`={$owner}")) or error_text(4);
 }
Beispiel #2
0
function error_check($bug_count, $title)
{
    if (0 == $bug_count) {
        $t_graph_font = graph_get_font();
        error_text($title, plugin_lang_get('not_enough_data'));
    }
}
Beispiel #3
0
/**
 * Check that there is enough data to create graph
 *
 * @param int $p_bug_count bug count
 * @param string $p_title title
 */
function error_check($bug_count, $title)
{
    if (0 == $bug_count) {
        error_text($title, plugin_lang_get('not_enough_data'));
    }
}