Ignore:
Timestamp:
Dec 21, 2013, 5:33:24 PM (10 years ago)
Author:
mistic100
Message:

update for Piwigo 2.6 + code clean

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GuestBook/include/functions.inc.php

    r24889 r26065  
    11<?php
    2 if (!defined('GUESTBOOK_PATH')) die('Hacking attempt!');
     2defined('GUESTBOOK_PATH') or die('Hacking attempt!');
    33
    44function get_stars($score, $path)
    55{
    6   if ($score === null) return null;
     6  if (!isset($score)) return null;
    77 
    88  $max = 5;
     
    1010  $floor = floor($score);
    1111 
    12   $html = null;
     12  $html = '';
    1313  for ($i=1; $i<=$floor; $i++)
    1414  {
Note: See TracChangeset for help on using the changeset viewer.