diff options
| author | 2013-12-01 21:38:20 +0100 | |
|---|---|---|
| committer | 2013-12-01 21:38:20 +0100 | |
| commit | baa8d21341d3f35a06815fd3f4ec536ef6ac2f3e (patch) | |
| tree | 38a618a3cc9c06ef53ff4c8a13d87fd033de4126 /app/models/Entry.php | |
| parent | b646bd2f084483bc95b279be3175c77174fbeb89 (diff) | |
PHP ctype_digit
Utilisation d'une fonction plus appropriée pour tester si une chaîne
représente un nombre entier
Corrige un bug de date
Diffstat (limited to 'app/models/Entry.php')
| -rwxr-xr-x | app/models/Entry.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/Entry.php b/app/models/Entry.php index ae8facf68..196823f67 100755 --- a/app/models/Entry.php +++ b/app/models/Entry.php @@ -106,7 +106,7 @@ class Entry extends Model { $this->link = $value; } public function _date ($value) { - if (is_int ($value)) { + if (ctype_digit ($value)) { $this->date = intval ($value); } else { $this->date = time (); |
