mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-07-23 01:47:04 +00:00
* Use Smarty to split View and Controller on studs page (work in progress) * Add field "active" to Poll * And some other stuff...
10 lines
No EOL
166 B
PHP
10 lines
No EOL
166 B
PHP
<?php
|
|
|
|
function countStuds($subjects)
|
|
{
|
|
$nb = 0;
|
|
foreach($subjects as $subject) {
|
|
$nb += substr_count($subject->sujet, ',')+1;
|
|
}
|
|
return $nb;
|
|
} |